google app engine - Run custom Python script before appcfg.py update runs -


Is it possible to run some python scripts every time I run the deployment process on appcfg.py? I need to copy some files from external source in my app folder before uploading to GAE Thanks!

I summarized the sources of appcfg.py , script which Keeps the application on Google App Engine, but I can not find a location where a pre-deployment hook can be defined.

I believe that you must modify appcfg.py

You should create a simple deployment script and call your order from the script.

For example, you can create a simple Makefile with the only goal you want:

  Deploy: your -Copy-command / path / to / GA-DevKit / APCFGPAP update   

create command to copy external files and call Google App Engine Deployment Tool The order to do will be executed.

Comments