Changes between Version 1 and Version 2 of InstallationGuidelines/Heroku


Ignore:
Timestamp:
09/23/13 04:26:22 (11 years ago)
Author:
Michael Howden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Heroku

    v1 v2  
    33
    44== Introduction ==
    5 Eden can be easily deployed on heroku.
    6 The initial deployment is free of cost and does not require a credit card.
    7 For making the deployment scalable, and to introduce more add-ons to the deployment, appropriate pricing is available.
    8 
    9 More information can be found here - [https://www.heroku.com/pricing Pricing]
     5Heroku (http://www.heroku) is a Cloud Application which Sahana Eden can easily be deployed on. The basic deployment is free of cost and does not require a credit card. For making the deployment scalable, and to introduce more add-ons to the deployment, Heroku offers a number of different  [https://www.heroku.com/pricing Pricing] options.
    106
    117== Deployment ==
     8The deployment process is very straightforward.:
     91. Create Heroku Account
     102. Install [https://toolbelt.heroku.com/ Heroku Toolbelt]
     113. Create Git Branch with Web2Py + Sahana Eden
     124. Create Heroku App
    1213
    13 * The deployment process is very straightforward.
    14 * Changes when committed and pushed to git automatically reflect in the deployment, and the application is rebuilt and redeployed.
    15 
    16 The following script will be useful in deploying eden on heroku -
    17 
     14=== Create Git Branch with Web2Py + Sahana Eden ===
     15It's recommended to do this in a separate local directory to avoid interfering with your working Web2Py + Sahana Eden branches.
    1816{{{
    1917# Choose the Admin Password
     
    2422cd web2py/applications
    2523
    26 # Get latest copy of Sahana Eden.
     24# Get Sahana Eden TRUNK.
    2725git clone https://github.com/flavour/eden.git eden
     26
     27# OR get your Sahana Eden branch.
     28git clone https://github.com/YOUR_GIT_USERNAME/eden.git eden
    2829
    2930# Copy and edit the config file
     
    3132cat eden/models/000_config.py | sed "s/FINISHED_EDITING_CONFIG_FILE = False/FINISHED_EDITING_CONFIG_FILE = True/" > temp
    3233mv temp eden/models/000_config.py
     34}}}
    3335
    34 cd ..
    35 
     36=== Create Heroku App ===
     37{{{
    3638# Install virtualenv and postgres DB
    3739sudo pip install virtualenv
     
    7981}}}
    8082
    81 * Whenever {{{git push heroku master}}} is done with some changes, those changes are pushed into the application deployed on heroku.
     83== Updates == 
     84When changes merged and the pushed to Heroku the application is rebuilt with these changes.
     85
     86Currently updates can only be made directly to the combined branch. We need instructions to set up the git branch so that the you can still update from the Sahana Eden branch, eg:
     87{{{
     88# THIS DOES NOT CURRENTLY WORK
     89# Pull changes from trunk
     90git pull upstream git://github.com/flavour/eden.git master
     91
     92# OR Pull changes from your branch
     93git pull git://github.com/YOUR_GIT_USERNAME/eden.git master
     94
     95# Push Changes to Heroku App
     96git push heroku master
     97}}}
     98
     99== To Do ==
     100* Preserve Sahana Eden git to be able to pull Sahana Eden updates
     101* Redirect to Sahana Eden - not ( Web2Py routes.py?)
     102* Access Error Tickets
     103* Commands / Scripts to clear the database