这里的文档表示,在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