Code / heroku / insoshi / screencast

OsCurrency Heroku Deployment

“Anyone can run their own financial system.” – Bernard Lietaer at the Naropa Intentional Economics workshop.

Thanks to Lee Azzarello, oscurrency can now be deployed to heroku with the master branch. For production use, the edge branch is preferred as previous testing in development and production has been done with edge. Also, two more items need to be worked on for heroku deployment. In edge, search is done with sphinx which heroku does not support. Since a community currency system generally does not need industrial strength search, perhaps this can be replaced with standard database queries. Also, the edge branch uses workling and starling for background processing of newsletter and forum post emails. Heroku uses DJ workers.

sudo gem install aws-s3
git clone git://github.com/austintimeexchange/oscurrency.git
cd oscurrency
heroku create
git push heroku master
heroku rake db:migrate
heroku rake install
export AMAZON_ACCESS_KEY_ID=[amazon_access_key_id]
export AMAZON_SECRET_ACCESS_KEY=[amazon_secret_access_key]
heroku config:add AMAZON_ACCESS_KEY_ID=$AMAZON_ACCESS_KEY_ID
heroku config:add AMAZON_SECRET_ACCESS_KEY=$AMAZON_SECRET_ACCESS_KEY
script/create_s3_bucket [bucket_name]
heroku config:add S3_BUCKET_NAME=[bucket_name]
heroku config:add GMAIL_SMTP_USER=[gmail_username]
heroku config:add GMAIL_SMTP_PASSWORD=[gmail_password]

Here’s a larger version of the screencast on blip.tv and the finished product on heroku.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s