【发布时间】:2014-01-04 18:00:15
【问题描述】:
这里的文档说 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
【问题讨论】:
标签: ruby heroku ruby-on-rails-4 asset-pipeline