Changes between Version 1 and Version 2 of InstallationGuidelines/Heroku
- Timestamp:
- 09/23/13 04:26:22 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Heroku
v1 v2 3 3 4 4 == 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] 5 Heroku (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. 10 6 11 7 == Deployment == 8 The deployment process is very straightforward.: 9 1. Create Heroku Account 10 2. Install [https://toolbelt.heroku.com/ Heroku Toolbelt] 11 3. Create Git Branch with Web2Py + Sahana Eden 12 4. Create Heroku App 12 13 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 === 15 It's recommended to do this in a separate local directory to avoid interfering with your working Web2Py + Sahana Eden branches. 18 16 {{{ 19 17 # Choose the Admin Password … … 24 22 cd web2py/applications 25 23 26 # Get latest copy of Sahana Eden.24 # Get Sahana Eden TRUNK. 27 25 git clone https://github.com/flavour/eden.git eden 26 27 # OR get your Sahana Eden branch. 28 git clone https://github.com/YOUR_GIT_USERNAME/eden.git eden 28 29 29 30 # Copy and edit the config file … … 31 32 cat eden/models/000_config.py | sed "s/FINISHED_EDITING_CONFIG_FILE = False/FINISHED_EDITING_CONFIG_FILE = True/" > temp 32 33 mv temp eden/models/000_config.py 34 }}} 33 35 34 cd .. 35 36 === Create Heroku App === 37 {{{ 36 38 # Install virtualenv and postgres DB 37 39 sudo pip install virtualenv … … 79 81 }}} 80 82 81 * Whenever {{{git push heroku master}}} is done with some changes, those changes are pushed into the application deployed on heroku. 83 == Updates == 84 When changes merged and the pushed to Heroku the application is rebuilt with these changes. 85 86 Currently 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 90 git pull upstream git://github.com/flavour/eden.git master 91 92 # OR Pull changes from your branch 93 git pull git://github.com/YOUR_GIT_USERNAME/eden.git master 94 95 # Push Changes to Heroku App 96 git 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