Yves-Marie Ip
Yves-Marie Ip

Reputation: 84

Why is my code not updating on App Engine?

I have an App Engine Service, running on Google Cloud Platform.

I run an old version of my NodeJS application on it.

After having updated my code, I have run the following command: gcloud app deploy, in my GCP console, directly. It shows no error.

It says 'X files updated' and after that, I go on my application and the code is actually not updated.

I expect my code to be deployed and therefore, updated, after I run this command.

Why is this expectation not met?

Upvotes: 1

Views: 835

Answers (1)

NoCommandLine
NoCommandLine

Reputation: 6298

  1. Are you sure you are deploying to the same version? If you're deploying a different version, did you migrate traffic to this new version? To check this, login to console.cloud.google.com > App Engine > Versions

    This will show you all the versions you currently have deployed and you can confirm which one(s) are serving traffic

  2. You should also confirm that you actually have the 'updated' source code deployed. Following the link in bullet 1 above, you should see a column that says 'Diagnose' with 'TOOLS' under it. Click on the drop down and select 'source'. This will show you your source code. Confirm you have your updated code

  3. If your files are static, they could be cached. You can try using cache bursting techniques (search Stackoverflow for this), or wait for some time and try again.

Upvotes: 1

Related Questions