I've started to have a problem today.
Everytime I run appcfg.py update . it updates 441 project files.
Even if I just modified 1 it will upload 442.
running appcfg.py update . twice will upload 441 files every time.
This is obviusly a problem because instead uploading a couple of files it is uploading a lot of them and taking a lot of time.
This is what I have tried:
Updated app engine launcher to it latest version
Rebooted
removed all files from the folder, download them again from git
nothing seems to work.
I even left only app.yaml and index.php and it uploaded both files every time, even if I do not change anything.
Ideas? thanks
This is expected behavior. Uploading the files are always fast for me.
it is fixed now.
At the moment of this answer, google seems to have fixed the issue.
Just tried to deploy and it only uploaded the modified files.
Related
I have a react app created using create-react-app. When I deploy, I build in the /build folder and then move the contents to /dist, where the server serves the app. If I build the app locally, the building takes 50 seconds because I always delete the /build folder to save space on my pc. But if I don't delete the /build folder it takes 600 seconds.
If I delete the build folder on every deploy, does it affect the performance of my app?
welcome to Stack Overflow. I don't think it affects the performance of your application. I think it is also a good way to ensure your build have all the latest changes and updates you have done on the code. Cheers
I just stumbled on the following issue in App Engine Standard with a Python 2.7 enviroment
So I deployed to my test environment yesterday and today I had the idea of updating one of my applications. I do my normal "gcloud deploy ... " and it says updating 3 files ... While I actually changed a bunch of files. Basically my deploy command says the files are not changed.
After some searching around I found that files are being uploaded to a staging area and checked with a hash. Is it safe to actually clear this staging area, or does the gcloud command have some secret force option to actually force the files to be renewed.
The gcloud command has not given any errors what so ever, nor was it aborted at some point of deployment or something. So I have no errors, but my files aren't uploaded at all. I also tried modifying alot of files, and nothing changed
I never use the promote option for these rare cases that a deploy might fail
So anyone encountered this before, or has a solution to this issue ?
I also was encountering this and the only solution I could find was to deploy to a new bucket. To do this:
go to https://console.cloud.google.com/storage/browser and create a new bucket
redeploy using gcloud app deploy --bucket gs://your-new-bucket. (Change your-new-bucket to the actual bucket name)
This uploaded all the files again and created a new version in App Engine.
You can Go to https://console.cloud.google.com/storage/browser and delete your application bucket, on the next deploy it will be recreated. Additionally you can use the parameter --verbosity=info to check which files are being uploaded.
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?
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.
i believe you can't. its all or nothing.
I have recently started using GitHub. I am uploading my cakephp website.
Also, I am using GitHUb for windows, http://windows.github.com/
Now, after I added my CakePHP files -> committed the changes -> synced, I do not see my app/database.php file being uploaded.
I checked the repository through browser, but still can't find the database.php file.
I have re-installed GitHub for windows, created a new repository, again added the files to it, but same result.
Please help, what is the issue.
Clear your .gitignore file and commit again.
But database.php is in your .gitignore is for a security reason. It may contain sensitive data, double check it before pushing.
I recently relocated my Eclipse Java GAE project to a different location on my computer. (And both locations are under Dropbox. ) Since then, I've been having issues with deployment. When I make changes to files and save them, sometimes it doesn't recognize the changes and doesn't upload them (so when I deploy through Eclipse, it says uploading 0 files and the live deployment is not updated).
Sometimes it does work (after several clean's and restarts to Eclipse).
Any help on how to fix this would be greatly appreciated, thanks!
It seems solved now, some notes to consider
Ensure that you are not manually modifying (adding/removing) libraries under war/WEB-INF/lib folder. Add to that folder only when you are using the libraries. (I had some unused libraries there)
Ensure that war/bin/classes are cleaned after you clean the project
I reinstalled the plugin as well, just in case