I am new to google app engine. I have a react app
Before deploying to production I use npm run build
which creates / updated the build folder. Then I push my app to app engine using gcloud app deploy
.
How do I know that the server is using the files in my build folder?
Is there something I should specify in my app.yaml?
Thank you!
You could create an NPM script to first change into the desired build
directory when deploying the App Engine app.
"scripts": {
"app.deploy": "cd dist/app/ && gcloud app deploy app.yaml --project api-project-########## --version v2 --no-promote --verbosity debug"
...
}
Run the script:
npm run app.deploy