pixelearth
pixelearth

Reputation: 14610

Rails 3.1 Asset Pipeline have Heroku implications?

Does the asset pipeline have implications for rails on heroku that I should know about?

Upvotes: 1

Views: 1106

Answers (2)

Juhász Attila
Juhász Attila

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

mynameiscoffey
mynameiscoffey

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

Related Questions