HOWTO: Heroku deployment

vrinek edited this page Apr 20, 2012 · 2 revisions
Clone this wiki locally

Install git

Download git from http://git-scm.com/ and install it.

Set up a Heroku account

Sign up for Heroku and set it up following this guide: https://devcenter.heroku.com/articles/quickstart.

Open a console terminal

Terminal.app on OS X, Command prompt on Windows and a myriad of application on Linux

Download D&D on Rails

Go to a directory of your choice (inside it we will create a new directory for D&D on Rails).

Run git clone https://vrinek@github.com/vrinek/Dungeons-and-Dragons-on-Rails.git to download the application a new directory named Dungeons-and-Dragons-on-Rails.

Deploy the application on Heroku

Go to the created directory (cd Dungeons-and-Dragons-on-Rails).

Run heroku create --stack cedar to create a new application on Heroku to deploy our code.

Run heroku addons:add mongohq:free to add MongoDB to your application (this is the database we use).

Run git push heroku master to deploy the code.

Run heroku open to open the newly deployed application.

Enjoy :-)