Creating live application on Heroku with Rails 3.1.3
Create a new Rails application
rails new my_app -d mysql
Code the application with your own content,
..............................
.............................
Add following code in GemFile
group :production do
gem 'therubyracer', '~> 0.9.3.beta1'
gem 'pg'
end
Now run bundler without production
bundle install --without production
After this create heroku application along with stack using,
heroku create my_app --stack cedar
Now commit the code to heroku,
Counting objects: 67, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (52/52), done.
Writing objects: 100% (67/67), 86.33 KiB, done.
Total 67 (delta 5), reused 0 (delta 0) '
-----> Heroku receiving push
-----> Rails app detected
-------------------------------------------
-------------------------------------------
-------------------------------------------