You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The docs here and here show that you can use entrypoint as a setting in app.yaml for flexible environments, but I have not been able to get it to work on nodejs.
Instead of executing the command in the entrypoint, it instead executes npm start, or if not available, will try to execute the index.js in the root of the project.
Additional context
How are you using GCP buildpacks?
pack and the gcr.io/buildpacks/builder
Cloud Functions
Cloud Run
Cloud Build
App Engine Standard
App Engine Flex
Firebase App Hosting
Did this used to work?
Unknown
What language is your project primarily written in?
Node.js
Steps To Reproduce
Steps to reproduce the behavior:
setup hello world project
add entrypoint option to app.yaml file with entrypoint: echo "Entry point has executed"
Update npm start in package.json to "start": "echo \"Package.json npm start has executed\"",
Deploy to app engine
Full app.yaml file for reference:
runtime: nodejs
env: flex
entrypoint: echo "Entry point has executed"
runtime_config:
operating_system: ubuntu22
runtime_version: 20
automatic_scaling:
min_num_instances: 1
max_num_instances: 1
Expected behavior
Expect logs to show "Entry point has executed"
Actual behavior
Logs show Package.json npm start has executed
If applicable, add screenshots / logs / error messages
The text was updated successfully, but these errors were encountered:
I have the same issue.
I'm using flexible env with nodejs and it still runs with the "npm start" command.
In my case my entrypoint is node dist/main.js
Describe the bug
The docs here and here show that you can use entrypoint as a setting in app.yaml for flexible environments, but I have not been able to get it to work on nodejs.
Instead of executing the command in the entrypoint, it instead executes
npm start
, or if not available, will try to execute the index.js in the root of the project.Additional context
How are you using GCP buildpacks?
pack
and thegcr.io/buildpacks/builder
Did this used to work?
Unknown
What language is your project primarily written in?
Node.js
Steps To Reproduce
Steps to reproduce the behavior:
entrypoint: echo "Entry point has executed"
npm start
in package.json to"start": "echo \"Package.json npm start has executed\"",
Full app.yaml file for reference:
Expected behavior
Expect logs to show "Entry point has executed"
Actual behavior
Logs show
Package.json npm start has executed
If applicable, add screenshots / logs / error messages
The text was updated successfully, but these errors were encountered: