Skip to content

Instantly share code, notes, and snippets.

@chrisyeung1121
Last active August 29, 2015 14:19
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 chrisyeung1121/d66553262c4f4661c7f8 to your computer and use it in GitHub Desktop.
Save chrisyeung1121/d66553262c4f4661c7f8 to your computer and use it in GitHub Desktop.
Rails Deploying to Heroku Tips

Adding PG to heroku (Database)

don't need to set database.yml, it is set automatically.

heroku addons:add heroku-postgresql:hobby-dev -a carshare-all

==============

Asset precompile on Heroku (Asset Pipeline)

Bower is run on npm and has to require a custom buildpack on heroku. WE can use rails-assets.org instead

source 'https://rails-assets.org' do
	gem 'rails-assets-swiper', '3.0.6'
end

=============

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment