This is a fork of the Google Cloud Platform VM Runtime Zombie Apocalypse sample. It is modified to show how you can deploy multiple Modules as part of the same app, with one of the modules the Zombie Apocalypse VM Runtime module, and the other a very simple 'guestbook' app that uses 'regular' App Engine instances.
The module routing is set up so that the guestbook is reached at http://your-app-id.appspot.com
, and the zombies dashboard is reached at http://your-app-id.appspot.com/zombies
.
The original sample is inspired by a Zombie Apocalypse ODEINT demo listed in the Scipy Cookbook.
-
Make sure that you are invited to the VM Runtime Trusted Tester Program, and download the custom SDK.
-
In both
app.yaml
andzombies.yaml
, change theapplication
value of theapp.yaml
file fromyour-app-id
to that of the Application ID which is whitelisted for the VM Runtime Trusted Tester Program. -
Change to your project directory. From there, run the following commands:
<CUSTOM_SDK_DIR>/appcfg.py --no_precompilation -R update app.yaml zombies.yaml <CUSTOM_SDK_DIR>/appcfg.py --no_precompilation -R update_indexes . <CUSTOM_SDK_DIR>/appcfg.py --no_precompilation -R update_dispatch .
-
Visit the following URLs:
http://your-app-id.appspot.com/
andhttp://your-app-id.appspot.com/zombies
The module logs are available at the App Engine Admin Console, https://preview.appengine.google.com/. (For the VM runtime, be sure to always use the 'preview' prefix).
Sometimes you may want to to check the logs on the VMs as well. To do that:
- Install gcutil if necessary.
- Go to the Cloud Console and choose the project which is under the Trusted Tester Program.
- Click 'Compute Engine' in the sidebar.
- Find your VM runtime instance: Click the instance for the version
one
, or the version you are using if you changed it fromone
. - In the instance details, scroll down to the bottom and find the clickable word "ssh", and click it.
- Copy the displayed command and execute it on your command line.
- Look at
/var/log/app_engine/*.log
.
- See CONTRIB.md
- See LICENSE