Created
June 2, 2017 23:47
-
-
Save aizatto/1f9111ea55203deebe1427f007766381 to your computer and use it in GitHub Desktop.
Capistrano configuration for yarn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
before :updated, 'yarn:install' | |
before :updated, 'yarn:build' | |
end | |
namespace :yarn do | |
desc 'Install yarn dependencies' | |
task :install do | |
on roles(:app) do | |
within release_path do | |
execute :yarn, :install | |
end | |
end | |
end | |
desc 'yarn dependencies' | |
task :build do | |
on roles(:app) do | |
within release_path do | |
with node_env: :production do | |
execute :yarn, :build | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment