Skip to content

Instantly share code, notes, and snippets.

@aizatto
Created June 2, 2017 23:47
Show Gist options
  • Save aizatto/1f9111ea55203deebe1427f007766381 to your computer and use it in GitHub Desktop.
Save aizatto/1f9111ea55203deebe1427f007766381 to your computer and use it in GitHub Desktop.
Capistrano configuration for yarn
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