Skip to content
Snippets Groups Projects
Commit 1123f3b1 authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Use bootstrap as executable name for playground environment

parent 083fb445
Branches
Tags v0.18.0
No related merge requests found
...@@ -44,8 +44,14 @@ func Build(dir string, module string, isDebug bool) error { ...@@ -44,8 +44,14 @@ func Build(dir string, module string, isDebug bool) error {
handler := path.Base(fullPath) handler := path.Base(fullPath)
fmt.Println(fmt.Sprintf("Building %v", handler)) 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) 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) appPath := fmt.Sprintf(`%v/core/%v`, module, handler)
err := BuildGolangApp(outputFile, appPath, module, isDebug) err := BuildGolangApp(outputFile, appPath, module, isDebug)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment