对于我的Rails 3.2
/Capistrano 3
应用程序,我配置了两个部署环境:staging
和production
。
我不想在部署到staging
时花费时间在资产编译上,因为它应该与本地development
相同。
在我的Capfile
中
require 'capistrano/rails/assets'
这是production
所需的,但是通过这一行,Capistrano
还可以为所有其他环境编译资产。
如何配置为针对特定环境编译资源(或跳过编译)?
发布于 2015-01-30 14:25:32
尝试将此行添加到config/environment/staging.rb文件
config.assets.compile = false
https://stackoverflow.com/questions/28230013
复制相似问题