Skip to content

Instantly share code, notes, and snippets.

@kinopyo
Created June 8, 2011 13:37
Show Gist options
  • Save kinopyo/1014428 to your computer and use it in GitHub Desktop.
Save kinopyo/1014428 to your computer and use it in GitHub Desktop.
heroku cedar app rails 3.1rc
### in Terminal
# create rails app
rails new test_app
############ start: edit Gemfile ##############
#wrap sqlite3 in
group :test, :development do
gem 'sqlite3'
end
# add thin server
gem 'thin'
#add the rubyracer for heroku
group :production do
gem 'therubyracer-heroku', '0.8.1.pre3'
gem 'pg'
end
############ end: edit Gemfile ##############
### in Terminal
# bundle install
bundle
# git initialize
git init .
# add files
git commit -am "initial commit"
#create app on heroku
heroku create --stack cedar
# push app to heroku
git push heroku master
# test it
heroku open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment