mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 490 forks source link

Add support for webpacker:compile task #519

Closed nithinbekal closed 7 years ago

nithinbekal commented 7 years ago

Rails 5.1.beta1 has just been released, and it introduces webpack for managing JS dependencies. The webpacker:compile rake task allows compilation of the assets needed for javascript_pack_tag. This PR adds support for running this during deployment.

Anyone using webpacker can add this line to their deploy block after rails:db_migrate:

invoke :'rails:webpacker_compile'

You can find more information about webpacker here: https://github.com/rails/webpacker

nithinbekal commented 7 years ago

Ping @d4be4st! Hi! :) Just wanted check if this would be a useful addition to Mina. :)

nithinbekal commented 7 years ago

Closing this. rails assets:precompile already does this.