dev4life
dev4life

Reputation: 11394

How to update single files in GAE?

The following command will upload the whole project to Google App Engine:

appcfg.py -R update C:/Users/user/Desktop/myproject/

However, I just made corrections locally to a single file of the project called index.php and would like to update the server version without uploading the whole project, which is large.

I have tried:

appcfg.py update C:/Users/user/Desktop/myproject/index.php

(notice I removed -R and also added the file name at the end) But this prints:

Usage: appcfg.py [options] update appcfg.py: error: Directory does not contain an index.yaml configuration file.

any idea?

Upvotes: 2

Views: 2470

Answers (2)

dev4life
dev4life

Reputation: 11394

My inexperience with google app engine made me post this question, but I got the answer on my own after a little while.

Hahahaha I just discovered something I did not know before. After making changes to the index.php file and finally decided to redeploy the whole thing. This time it took less than a minute to redeploy it to the server (the first time it took over 10).

It seems that the local appgine scans for local changes and submits just that instead of the whole project!

Therefore re-running:

appcfg.py -R update C:/Users/user/Desktop/myproject/

will update the files that were changed only.

Upvotes: 9

aschmid00
aschmid00

Reputation: 7158

i believe you can't. its all or nothing.

Upvotes: -2

Related Questions