Skip to content

Instantly share code, notes, and snippets.

@Godoy
Created January 15, 2013 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Godoy/4539465 to your computer and use it in GitHub Desktop.
Save Godoy/4539465 to your computer and use it in GitHub Desktop.
Deploy rails application in heroku
# In class Application < Rails::Application ...
# Heroku requires this to be false
config.assets.initialize_on_precompile=false
#...
group :production do
gem 'thin'
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
heroku create myapp
$ heroku info --app myapp
$ git push heroku master
$ heroku run rake db:migrate
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment