Reputation: 14610
Does the asset pipeline have implications for rails on heroku that I should know about?
Upvotes: 1
Views: 1106
Reputation: 28
Take care of that during the "rake asset:precompile
" phase there is NO environment. There is a config initialize_on_precompile which prevent Rails to connect to the db during this step. This is essential on Heroku.
BUT this config HAVE to go to config/application.rb and NOT to config/environments/production.rb. Keep in mind that there is no environment...
Upvotes: 0
Reputation: 15982
Yes it does, details can be found on Heroku's Rails 3.1 guide:
http://devcenter.heroku.com/articles/rails31_heroku_cedar
Upvotes: 1