Reputation: 18247
I was happily using appcfg.py
until recently everyone had to switch to gcloud app deploy
. But now when I try to deploy, no changes seem to happen.
For example if I edit my app's get
method to be just
class Main(webapp.RequestHandler):
def get(self):
self.response.out.write('Hello StackOverflow?')
return
And then do gcloud app deploy
; output shows one file changed, as expected:
descriptor: [/Users/bemmu/Dropbox/b2/candytools/appengine/app.yaml]
source: [/Users/bemmu/Dropbox/b2/candytools/appengine]
target project: [bemmu1-hrd]
target service: [default]
target version: [20200912t045337]
target url: [https://bemmu1-hrd.appspot.com]
Do you want to continue (Y/n)?
Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 1 file to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.
Setting traffic split for service [default]...done.
Deployed service [default] to [https://bemmu1-hrd.appspot.com]
However nothing changes. My website still stays as it was. I have confirmed I have the correct project selected. I also confirmed that the latest version is the only one running:
I have also tried fetching with cURL to make sure my browser is not caching anything. I also confirmed on cloud.google.com that the source changed (version number differs because this is from another attempt):
Any ideas? It's very painful to test this, as each deploy attempt takes over 4 minutes. I have a feeling I'm making some obvious silly mistake here.
Upvotes: 0
Views: 48
Reputation: 18247
You need to delete *.pyc files before deploy, otherwise GAE will use your stale cached ones instead of rebuilding them.
Upvotes: 1