且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Ruby on Rails预编译资产失败

更新时间:2023-11-24 23:42:22

Precompile your assets locally. In your shell cd to your application folder and enter:

RAILS_ENV=production bundle exec rake assets:precompile

This will precompile your assets locally Then you have to

git add .
git commit -am 'precompiled assets'
git push heroku

(eddited last line)