ndbroadbent / turbo-sprockets-rails3

Speeds up your Rails 3 assets:precompile by only recompiling changed files, and only compiling once to generate all assets
MIT License
976 stars 78 forks source link

Wrong RAILS_ENV with capistrano #89

Open matheusfc09 opened 10 years ago

matheusfc09 commented 10 years ago

When deploying with capistrano, using an environment called staging, the rake assets:precompile in the server uses the flag RAILS_ENV=production.

It runs:

"cd -- /home/appdeploy/apps/mo-try/releases/20140317161906 && RAILS_ENV=production RAILS_GROUPS=assets /usr/local/rvm/gems/ruby-1.9.3-p484@v1.1-ruby-3.2.14/bin/bundle exec rake assets:precompile"

I can't figure how to fix it. Thanks

matheusfc09 commented 10 years ago

Anyone?

ndbroadbent commented 10 years ago

Hi @matheusfc09 , I think this might be a bug in capistrano. You might want to try updating to the latest version of capistrano 2.x to see if it has been fixed