- create git repo of Yii application skeleton which you can clone and upload to Google App Engine and it will instantly work
- add necessary components which will allow to use "Google Cloud SQL" and "Google Cloud Storage" instead of local MySQL and local filesystem
- Maybe something else, but that's enough to start
- You can see the very first default Yii application page which you see if you execute
yiic webpp myproject
- Logs are routed to syslog (no need to have runtime directory writable)
- Assets are published to Google Cloud Storage instead of local assets folder.
- switch default page to /demo/default/index
- make cool looking bootstrap front page (with links to github)
- add Google Login button with icon
- logged in user will be able to change it's own details
- user data will be stored in Cloud SQL
- better documentation
cd your-project-dir
git clone git@github.com:poul-kg/yii-app-engine.git
- download latest yii framework 1.., NOT 2.* and put it
into
your-project-dir/yii-framework
directory, so thatyii.php
will have path likeyour-project-dir/yii-framework/yii.php
- Change
webapp/protected/config/main.php
file as you need. - If you need to publish assets, you will need to edit
webapp/protected/config/main.php
and add your owngs://
like path. - Also you must give permissions to your app to write to your bucket, please read about it on Google Cloud Storage Prerequisites page page
- Push your app to Google App Engine
- My IDE PHPStorm on Windows do this via the following cmd:
cd your-project-dir
C:\Python27\python.exe "C:/Program Files (x86)/Google/google_appengine/appcfg.py" -e my@email.com --passin --no_cookies -R --runtime=php update .
- Go to /site/contact page and check that jQuery and other JS files have been loaded. If not, you have problem with your asset directory configuration or your does not have proper permissions set.