Skip to content

Phanatic/twotier-fibonacci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twotier-fibonacci

fibonacci broken out between web and worker tier

to deploy to a remote HP Helion Development Platform Trial cluster, installed following instructions at http://docs.hpcloud.com/helion/devplatform/1.1/ALS-developer-trial-quick-start/

  1. run ./prep-deploy.sh if on *nix, or ./prep_deploy.ps1 if on Windows (via powershell)
  2. cd deploy
  3. helion push -n

Or you can deploy individual services from ./deploy/web and ./deploy/worker directories respectively. The deploy directory is created so that shared resources can be copied into web and worker directories.

required services:

  • rabbit-mq
  • mysql

To do local debugging, you need accessible instances of mysql and rabbit_mq. You should set the variables:

  • RABBITMQ_URL to amqp://{user}:{password}@{host}:{port}/%2f (note: default port is 5672, on localhost default user:password is guest:guest)
  • MYSQL_URL to mysql://{user}:{password}@{host}:{port}/{database_name} (note: default port is 3306)

You need to create your database and populate it. You can do this for web and worker by running the ./create_populate_db.py scripts from deploy/web and deploy/worker.

after creating the database, you will be ready to debug (rabbit queues are created by web and worker)

It is recommended that you debug worker_wsgi.py from the ./deploy/worker directory and web_wsgi from the ./deploy/web directory.

Note that the changes you make in web and worker top level directories need to be pushed out to ./deploy/web and ./deploy/worker by running ./prep_deploy.sh

About

fibonacci broken out between web and worker tier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.7%
  • CSS 5.9%
  • HTML 5.3%
  • JavaScript 2.9%
  • Shell 0.2%