Skip to content

Instantly share code, notes, and snippets.

@mvanholstyn
Created September 20, 2011 15:17
Show Gist options
  • Save mvanholstyn/1229378 to your computer and use it in GitHub Desktop.
Save mvanholstyn/1229378 to your computer and use it in GitHub Desktop.
Heroku - Rails 3.1 Asset Pipeline
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
# Bundler.require *Rails.groups(:assets => %w(development test))
# If you want your assets lazily compiled in production, use this line
Bundler.require(:default, :assets, Rails.env)
end
<% if ENV['MONGOHQ_URL'] %>
staging:
uri: <%= ENV['MONGOHQ_URL'] %>
production:
uri: <%= ENV['MONGOHQ_URL'] %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment