资产编译需要大量时间 - 大约 10-15 分钟
不知道是我个人的情况,还是大家都面临着同样的问题。我正在尝试使用此命令在服务器上预编译资产 -
bundle exec rake assets:precompile RAILS_ENV=production
但编译所有资产大约需要 10 分钟。该项目不大,刚刚启动,有大约 5 个咖啡脚本文件,3 个 css 文件。
因此,即使是 capistrano 部署也需要更长的时间才能完成。
早些时候是 ruby 1.9.2,现在我正在尝试 REE 1.8.7。
I don't know it's just me, or everybody is facing same kinda issue. I am trying to precompile assets on server with this command -
bundle exec rake assets:precompile RAILS_ENV=production
but it takes about 10mins to compile all assets. The project is not big, its just started and has some 5 coffee script files, 3 css files.
Because of this, even capistrano deployments takes longer to complete.
Earlier it was ruby 1.9.2 there, now I am trying with REE 1.8.7.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论