1
我有一个自定义application_admin.css.scss
app/assets/stylesheets
Rails的预编译自定义资产
下,我有这行我config/environments/production.rb
文件
config.assets.precompile += [%w(application_admin.css)]
当我运行bundle exec rake assets:precompile
自定义样式表不编译
我遇到这个帖子,但我已经有他们的建议。 Rails Assets custom manifests are not precompiling
我还应该检查什么?
没有没有做任何事情。 “$束EXEC耙资产:预编译 $” – nevermind
@Newbie,既然你把它放在你的production.rb文件你可能想要做一个: 'RAILS_ENV =产品包的exec耙资产:precompile' –
是的,这工作!改变解决方案以包括环境,我会接受它。我们是否也运行bundle exec rake资源:分别为每个环境预编译? – nevermind