Asset Compilation Slow for EmberJS

We are in the process of moving our interface to EmberJS and plan to use the Ember CLI, which should solve the problem that we currently have. Until this time, we have several Ember JS applications in our Rails application. Launching rake assets: precompilation is done locally in less than a minute, but compiling resources when deploying to Heroku is extremely slow (> 15 minutes) despite using PX speakers for deployment.

Here is our build log: https://gist.github.com/dior001/1d59deaff61ee243df7d

Pay attention to the compilation time of approximately 4 minutes per application EmberJS.

  • application_ember_orders => 2015-03-24T21: 54
  • application_ember_search => 2015-03-24T21: 58
  • application_ember_search_chrome => 2015-03-24T22: 02

Has anyone experienced this issue with the EmberJS and Rails pipeline? If you have any suggestions on why the compilation is so sluggish?

+5
source share
1 answer

I did not encounter this specific problem, but Heroku may be picky about pre-compiled assets, so running rake assets: net or even rake assets: clobber worked for me in the past before deployment. The first only cleans old assets, but the second is a bit more powerful.

+1
source

Source: https://habr.com/ru/post/1216036/


All Articles