當我運行部署到Heroku上的應用程序,我得到這個錯誤:Rails的 - 不能在Heroku上運行,因爲未編譯的資產的程序
ActionView::Template::Error ('fontawesome.less' wasn't found
我試圖預編譯本地資產 - 這樣:
bundle exec rake assets:precompile
結果:
...
FATAL: database "myapp_production" does not exist
...
當我運行 - heroku run rake assets:precompile
,結果是:
...
'fontawesome.less' wasn't found
...
在config/environments/production.rb
的設置:
config.assets.compile = true
是什麼原因導致這個問題?
非常感謝