Deploy php script aka application to google app engine is interesting. I came from traditional ftp-ing (so 1999 hehehe), scp and cpanel. Google app engine provide 2 ways of deployment; through appcfg.py and via git. I’ll try to explore both options now.
In this stage, application need to get register first to App Engine Administration Console. Visit this address to get it done :
Choose google account to use for this purpose.
click “Create Application” button.
make sure to check name availability and quota application (max 10).
Google app engine will need grant access from your google account.
Click ‘Accept” button to get started.
Deployment using appcfg.py
$ google_appengine/appcfg.py –oauth2 update digitalfusi/
08:59 PM Application: difuphp; version: 1
08:59 PM Host: appengine.google.com
Starting update of app: difuphp, version: 1
08:59 PM Getting current resource limits.
Your browser has been opened to visit:
If your browser is on a different machine then exit and re-run this
application with the command-line parameter
(process:3287): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0′ failed
09:01 PM Scanning files on local disk.
09:01 PM Cloning 2 application files.
09:01 PM Uploading 2 files and blobs.
09:01 PM Uploaded 2 files and blobs
09:01 PM Compilation starting.
09:01 PM Compilation completed.
09:01 PM Starting deployment.
09:01 PM Checking if deployment succeeded.
09:01 PM Deployment successful.
09:01 PM Checking if updated app version is serving.
09:01 PM Completed update of app: difuphp, version: 1
Testing the result by visit http://difuphp.appspot.com
appcfg.py is very straightforward command. Combine with oauth option I can upload all my php script to google infrastructure. Awesome.