Created
January 15, 2013 15:31
-
-
Save Godoy/4539465 to your computer and use it in GitHub Desktop.
Deploy rails application in heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In class Application < Rails::Application ... | |
# Heroku requires this to be false | |
config.assets.initialize_on_precompile=false | |
#... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :production do | |
gem 'thin' | |
gem 'pg' | |
end | |
group :development, :test do | |
gem 'sqlite3' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku create myapp | |
$ heroku info --app myapp | |
$ git push heroku master | |
$ heroku run rake db:migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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