diff --git a/mage_helpers/build.go b/mage_helpers/build.go index 9d85d34c5b34cca5f81f95a11f71e649035db427..63f5cdd73062cbdb7fe1677cfc6c43524bcb1cf0 100644 --- a/mage_helpers/build.go +++ b/mage_helpers/build.go @@ -44,8 +44,14 @@ func Build(dir string, module string, isDebug bool) error { handler := path.Base(fullPath) fmt.Println(fmt.Sprintf("Building %v", handler)) + outputFileName := handler + fmt.Println("Checking to use bootstrap") + if os.Getenv("ENVIRONMENT") == "playground" { + outputFileName = "bootstrap" + } + outputDir := fmt.Sprintf(currentDir+`/core/build/handlers/%v`, handler) - outputFile := fmt.Sprintf(`%v/%v`, outputDir, handler) + outputFile := fmt.Sprintf(`%v/%v`, outputDir, outputFileName) appPath := fmt.Sprintf(`%v/core/%v`, module, handler) err := BuildGolangApp(outputFile, appPath, module, isDebug) if err != nil {