Created
August 20, 2012 19:38
-
-
Save chrisconley/3407100 to your computer and use it in GitHub Desktop.
Revisions
-
chrisconley renamed this gist
Aug 20, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chrisconley revised this gist
Aug 20, 2012 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,13 +14,16 @@ heroku config | grep CLEARDB_DATABASE_URL heroku config:add DATABASE_URL='mysql2://aaaaaaa:aaaaaaa@us-cdbr-east.cleardb.com/heroku_aaaaaa?reconnect=true' # Now we need to set a few environment variables for the app to run # copy the secret key generated from `rake secret` rake secret # and set the SECRET_TOKEN with it heroku config:add SECRET_TOKEN=3688f877842a0e9324c14ea558268290 # Set your AWS credentials from https://portal.aws.amazon.com/gp/aws/securityCredentials#access_credentials heroku config:add AWS_KEY_ID=[your_key_id] heroku config:add AWS_KEY=[your_key] # Deploy the app to heroku git push heroku heroku-demo:master -
chrisconley revised this gist
Aug 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ # Make sure we're using Ruby 1.9.3 and checkout the heroku-demo branch of our fork rvm use 1.9.3 git clone git://github.com/chrisconley/clockworkraven.git my-raven cd my-raven/ git checkout heroku-demo # Create the heroku app and add the Redis and Mysql add-ons -
chrisconley revised this gist
Aug 20, 2012 . 1 changed file with 16 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,34 @@ # Make sure we're using Ruby 1.9.3 and checkout the heroku-demo branch of our fork rvm use 1.9.3 git clone git://github.com/chrisconley/clockworkraven.git my-raven cd my-rave/ git checkout heroku-demo # Create the heroku app and add the Redis and Mysql add-ons heroku create heroku addons:add redistogo:nano heroku addons:add cleardb:ignite # Copy the value of CLEARDB_DATABASE_URL and set DATABASE_URL with it heroku config | grep CLEARDB_DATABASE_URL # Make sure to change the protocol from `mysql://` to `mysql2://` heroku config:add DATABASE_URL='mysql2://aaaaaaa:aaaaaaa@us-cdbr-east.cleardb.com/heroku_aaaaaa?reconnect=true' # Now we need to set a few environment variables for the app to run # copy the secret key generated from `rake secret` rake secret # and set the SECRET_TOKEN with it heroku config:add SECRET_TOKEN=3688f877842a0e9324c14ea558268290 # Set your AWS credentials from https://portal.aws.amazon.com/gp/aws/securityCredentials#access_credentials heroku config:add AWS_KEY_ID=[your_key_id] heroku config:add AWS_KEY=[your_key] # Deploy the app to heroku git push heroku heroku-demo:master # Scale up our background worker needed to send tasks to Mturk heroku scale worker=1 # Bootstrap the db heroku run rake db:structure:load # Add our first user heroku run rake users:add -
chrisconley renamed this gist
Aug 20, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chrisconley created this gist
Aug 20, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ rvm use 1.9.3 git clone git://github.com/chrisconley/clockworkraven.git my-raven cd my-rave/ git checkout heroku-demo heroku create heroku addons:add redistogo:nano heroku addons:add cleardb:ignite heroku config | grep CLEARDB_DATABASE_URL # copy it and change to mysql2 heroku config:add DATABASE_URL='mysql2://aaaaaaa:aaaaaaa@us-cdbr-east.cleardb.com/heroku_aaaaaa?reconnect=true' rake secret # copy the secret key into the next line heroku config:add SECRET_TOKEN=3688f877842a0e9324c14ea558268290 heroku config:add AWS_KEY_ID=[your_key_id] heroku config:add AWS_KEY=[your_key] git push heroku heroku-demo:master heroku scale worker=1 heroku run rake db:structure:load heroku run rake users:add