1

一旦我完成了bundle exec rake assets:precompile RAILS_ENV=production

似乎它创建了类似application-e24jrjf834jg93bwuk13uy5gfd1y24f.css Then 当我访问该页面时,它是从我的应用程序调用的。

在开发模式下,我可以将更改添加到 css 文件并应用它。
在生产模式下,我还可以对 css 做些小改动吗?如果可能,怎么做?

4

1 回答 1

3

如果你在你的production.rbconfig.assets.initialize_on_precompile文件中设置了,那么你需要做的就是重启你的服务器。否则,只需通过再次运行和预编译资产来删除预编译资产。truebundle exec rake assets:cleanbundle exec rake assets:precompile RAILS_ENV=production

于 2013-01-30T06:37:08.317 回答