We're in the process of transitioning our front-end to EmberJS and plan to use the Ember CLI which should solve the problem we are currently having. Until that time we have multiple Ember JS applications in our Rails app. Running rake assets:precompile locally executes in less than a minute however asset compilation when deploying to Heroku is extremely slow (> 15 minutes) despite the use of PX dynos for deployment.
Here's our build log: https://gist.github.com/dior001/1d59deaff61ee243df7d
Note the compile times of approximately 4 minutes per EmberJS app.
Has anyone experienced this problem with EmberJS and the Rails asset pipeline? If so do you have any suggestions about why compilation is so sluggish?
I've not run into this particular problem but Heroku can be picky about precompiled assets, so running rake assets:clean or even rake assets:clobber before deployment has worked for me in the past. The first one only cleans out old assets, but the second is a bit more forceful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With