如何在Heroku上关闭Asset Pipeline?

时间:2013-02-06 03:52:18

标签: ruby-on-rails ruby-on-rails-3 heroku ruby-on-rails-3.2 asset-pipeline

如何关闭Heroku上的登台服务器上的资产预编译?

环境/ staging.rb:

config.assets.compress = false
config.assets.compile = false

设置环境变量:

RAILS_ENV: staging

推送时:

...Asset precompilation completed (30.65s)...

Rails 3.2.11

0 个答案:

没有答案