Skip to content
heartsentwined edited this page Oct 18, 2013 · 5 revisions

Basic setup


CHANGES This page has been updated for the 9.x branch. Legacy instructions are gone - clone this wiki repo and checkout the 8.x tag.


Create a new app, skip Test (-T), don't install gems yet (-B), and use postgresql (for heroku) (-d postgresql).

$ rails new ember-auth-rails-demo -TBd postgresql
$ cd ember-auth-rails-demo

Git.

$ git init
$ git add .
$ git commit -m 'Initial commit'

Recommended: RVM to manage your gems across projects.

$ rvm use --create --ruby-version 2.0.0@ember-auth-rails-demo
$ echo '.ruby-version' >> .gitignore
$ echo '.ruby-gemset'  >> .gitignore
$ git add .gitignore
$ git commit -m 'ignore .rvm files'

Further git commits are left to you.

Create a heroku app.

$ heroku login
$ heroku create

You can publish to heroku anytime, via

$ git push heroku master

Also remember to run, for example, any rake tasks on heroku.

$ # an example
$ rake db:migrate
$ heroku run bundle exec rake db:migrate

Heroku commands will be left to you.

Continue to Gems.

Clone this wiki locally