Google AppEngine - updating my webapp after deploy

混江龙づ霸主 提交于 2019-12-13 08:59:08

问题


friends! I'm fairly new to web app world and I have a question regarding Google AppEngine functions. I've installed the Launcher on my machine and signed up for the online platform (Python). I've added my project folder in the Launcher and hit "deploy" to have it online. However, when I edit/update my "main.py" file to move forward in the development the edits are not reflected online. In other words: I don't see any change, when I go to the link: [NAME].appspot.com and in fact, checking at the source code, I can see that it is still the first version I've developed. :(Shouldn't it update with em just saving the new .py version? Maybe it's a quite simple step I'm missing, but would be absolutely great if someone could help me :)

Extra info: I'm using Python 2.7 and have the SDK.

THANKS!! -Valentina


回答1:


Local changes are immediately reflected only on the local development server. From the Make a change section of Quickstart for Python App Engine Standard Environment:

Make a change

You can leave the development server running while you develop your application. The development server watches for changes in your source files and reloads them if necessary.

  1. Try it now: Leave the development server running, then edit main.py to change Hello, World! to something else.
  2. Reload http://localhost:8080/ to see the results.

The deployment step is what updates the live app. You need to repeat it whenever you want the latest code changes reflected by the live app. From Deploying a Python App:

Deploy your app to upload and run them on App Engine. When you deploy your apps, you create versions of those apps and their corresponding services in App Engine.



来源:https://stackoverflow.com/questions/42239080/google-appengine-updating-my-webapp-after-deploy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!