這裏的文檔表示,在Rails4中部署期間使用預編譯資源的heroku。Heroku沒有爲rails4預編譯資產
但是, 我沒有看到預編譯資產消息。
Using thin (1.6.1)
Using twitter-bootstrap-rails (2.2.8)
Using uglifier (2.3.1)
Using will_paginate (3.0.4)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (1.37s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
Detected manifest file, assuming assets were compiled locally
-----> Discovering process types
Procfile declares types -> (none)
Default types for Ruby -> console, rake, web, worker
我現在面臨的問題與引導我的應用程序,其中的導航欄不會正確加載+其他一些細微之處,我認爲它的資產預編譯的問題。
我使用Rails4,Ruby2.0
我在application.rb中
config.assets.enabled = true
手動啓用預編譯沒有幫助
heroku run rake assets:precompile
記住'.sprockets-manifest'文件是隱藏:) –
這應該是公認的答案 –
保存我的生活在這裏。沒有意識到這甚至被推到回購。謝謝! – SVetter