Google AppEngine - updating my webapp after deploy

2019-09-20 19:43发布

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条回答
走好不送
2楼-- · 2019-09-20 20:11

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.

查看更多
登录 后发表回答