GithubHelp home page GithubHelp logo

amygdala / appengine-scipy-zombie-apocalypse-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-scipy-zombie-apocalypse-python

0.0 3.0 0.0 100 KB

A simulator for zombie apocalypse with scipy

License: Apache License 2.0

Python 100.00%

appengine-scipy-zombie-apocalypse-python's Introduction

appengine-scipy-zombie-apocalypse

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.

Deploying

  1. Make sure that you are invited to the VM Runtime Trusted Tester Program, and download the custom SDK.

  2. In both app.yaml and zombies.yaml, change the application value of the app.yaml file from your-app-id to that of the Application ID which is whitelisted for the VM Runtime Trusted Tester Program.

  3. 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 .
    
  4. Visit the following URLs: http://your-app-id.appspot.com/ and http://your-app-id.appspot.com/zombies

How to check the logs on the VMs

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:

  1. Install gcutil if necessary.
  2. Go to the Cloud Console and choose the project which is under the Trusted Tester Program.
  3. Click 'Compute Engine' in the sidebar.
  4. Find your VM runtime instance: Click the instance for the version one, or the version you are using if you changed it from one.
  5. In the instance details, scroll down to the bottom and find the clickable word "ssh", and click it.
  6. Copy the displayed command and execute it on your command line.
  7. Look at /var/log/app_engine/*.log.

Contributing changes

Licensing

appengine-scipy-zombie-apocalypse-python's People

Contributors

amygdala avatar tmatsuo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.