在Ruby中编译资产是否需要在部署中完成?为什么不之前?

问题描述 投票:0回答:1

所以这只是我最近一直在想的一个问题,在部署等待资产编译时,我似乎花费了大量时间。

为什么我们不能在开发机器上编译资产并将其提交到git repo中?

我目前正在使用带uglifier的资产管道使用ruby 2.5.x和rails 5.2.4.x。

是否可以在开发中执行此操作,从而在部署期间禁用所有资产编译?

非常感谢,西蒙

ruby-on-rails ruby assets precompile
1个回答
0
投票

第一:Why can we not compile the assets on our development machines and submit it in the git repo?

© www.soinside.com 2019 - 2024. All rights reserved.