1

I'm developing a web app to deploy on Google Cloud's App Engine. When I make some changes dev_appserver.py sees them (console says Detected file changes) but those change don't go live, i.e. even if I refresh the page I still see the old code. For the new code to be visible I need to kill the process and restart dev_appserver.py.

Is there any way around this?

My app.yalm file:

runtime: python37

I'm developing the app using Flask.

Edgar Derby
  • 2,543
  • 4
  • 29
  • 48
  • Seems like this question has been asked before: https://stackoverflow.com/questions/5508637/app-engine-development-server-does-not-reload-code-when-changed – jlapenna Mar 28 '20 at 15:27

1 Answers1

-1

That's working as intended. Your app is "uploaded" and "deployed" to the Cloud and the local dev environment emulates that. You can't simply make changes in your code and expect it to be live. You need to redeploy; in this case, rerun the dev_appserver.py.

There are hacky ways of forcing it to reload (or you could just rerun the deploy command). Some users have tried Eclipse plugin and it apparently allows you perform hot updates during development.

Ying Li
  • 2,500
  • 2
  • 13
  • 37
  • 1
    Not true, the dev_appserver does try to hot reload code, but doesn't always succeed. ``` INFO 2020-03-28 15:23:00,130 module.py:432] [api] Detected file changes: /home/user/code/bikebuds/gae/api/4913 /home/user/code/bikebuds/gae/api/bikebuds.py ``` – jlapenna Mar 28 '20 at 15:26