Heroku

Deploying an App to Heroku

10/18/13

Instructions for getting your ROR site online (from new local project to accessible to anyone, online)

1. Set up your new site + your git repo

rails new [name of rails app]
bundle
rails g scaffold [name of model] [name of table column]:[type of input(string/integer/text)]
rake db:migrate

2. Get a thing going on Heroku

heroku create [pass name if you want / wait to see cool name Heroku comes up with]

3. Connect with git?

git push heroku master

Convert app databases from SQLite to PostgreSQL

Some resources:

Rails 4 on Heroku – Heroku’s documentation on running Rails 4 applications.
Railscast – Migrating to PostgreSQL – The Railscast screencast covering migrating an app to PostgreSQL.
12 Factor Apps – The manifesto of Heroku’s 12 Factor App philosophy.

what are your thoughts?

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s