aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorAlban Peignier2017-11-27 12:36:51 +0100
committerAlban Peignier2017-11-27 12:36:51 +0100
commitff28f0371280b8258921f8204e7af9c7edb56413 (patch)
treef535c5ae9509990a5ba84146a4d8c062dabfd392 /config/deploy.rb
parent1e0e6fbefd2ca4bc4c3f88766fdec1d2965a0766 (diff)
downloadchouette-core-ff28f0371280b8258921f8204e7af9c7edb56413.tar.bz2
Run yarn install after bundle install. Refs #5085
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 5fff31a4a..a8d44d3e5 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -55,6 +55,12 @@ namespace :deploy do
end
after "bundle:install", "deploy:bundle_link"
+ desc "Run yarn install"
+ task :yarn do
+ run "cd #{release_path} && yarn --production --no-progress install"
+ end
+ after "bundle:install", "deploy:yarn"
+
desc "Symlinks shared configs and folders on each release"
task :symlink_shared, :except => { :no_release => true } do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/"