4

I followed https://cloud.google.com/endpoints/docs/quickstart-endpoints and everything worked without any issues. My question is when I update the Flask servers code how can I restart the Flask server? I know if I re-run ./deploy_app.sh inside of the scripts folder it will re-deploy the app again but it takes a long time to do that. There must be a faster way to restart just the Flask server? If anyone has any ideas I would appreciate it!

1 Answer 1

3

If you refer to this deploy_app.sh script, it is indeed the only way to update and restart your app, as you must deploy it to do so, and this takes a bit of time.

If you are worried about this downtime, maybe your app is in production or something, you may edit the line gcloud -q app deploy $APP in the script, to be something like gcloud -q app deploy --no-stop-previous-version $APP. This new flag avoids stopping the previous version while you deploy the new one

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah I ended up using that same command which is great if you do not want down time but it still requires building a new version. Basically I just need to fully develop it locally. Thank you for the answer!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.