Skip to content

Commit

Permalink
Make web process default for java/python/nodejs (#37)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Huo <[email protected]>
  • Loading branch information
benjaminhuo authored Feb 8, 2022
1 parent 7e32cf2 commit 00a84aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ builders/testdata/dotnet/*/*/*/obj/
builders/testdata/java/*/.gradle/
builders/testdata/generic/*/obj/
builders/testdata/generic/*/*/obj/
builders/testdata/java/*/bin/
builders/testdata/java/*/target/
2 changes: 1 addition & 1 deletion cmd/java/entrypoint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ func buildFn(ctx *gcp.Context) error {
}

// Configure the entrypoint for production.
ctx.AddWebProcess(command)
ctx.AddDefaultWebProcess(command, true)
return nil
}
2 changes: 1 addition & 1 deletion cmd/nodejs/functions_framework/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func buildFn(ctx *gcp.Context) error {
}

ctx.SetFunctionsEnvVars(l)
ctx.AddWebProcess([]string{"/bin/bash", "-c", ff})
ctx.AddDefaultWebProcess([]string{"/bin/bash", "-c", ff}, true)
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/python/functions_framework/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func buildFn(ctx *gcp.Context) error {
}

ctx.SetFunctionsEnvVars(l)
ctx.AddWebProcess([]string{"functions-framework"})
ctx.AddDefaultWebProcess([]string{"functions-framework"}, true)
return nil
}

Expand Down

0 comments on commit 00a84aa

Please sign in to comment.