aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorAlban Peignier2016-11-08 19:00:13 +0100
committerAlban Peignier2016-11-08 19:00:13 +0100
commite5bdfe49e120f6e703e63d05fad9e53ea499b58e (patch)
tree4a11e575e783135139e2124782ca5b96aa2cc59f /config/deploy.rb
parent4ef200af23b72cf48b8ae3b1022e1b6e6b7ee61d (diff)
downloadchouette-core-e5bdfe49e120f6e703e63d05fad9e53ea499b58e.tar.bz2
Require and configure npm install. Refs #1910
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index cd6391ec3..34d1b6e4d 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -23,6 +23,11 @@ ssh_options[:forward_agent] = true
require "bundler/capistrano"
require 'whenever/capistrano'
+require 'capistrano/npm'
+set :npm_options, '--production --silent --no-progress'
+
+after 'deploy:finalize_update', 'npm:install'
+
# Whenever
set :whenever_variables, ->{ "'environment=#{fetch :whenever_environment}&bundle_command=bin/bundle exec&additionnal_path=/var/lib/gems/2.2.0/bin'" } # invoke bin/bundle to use 'correct' ruby environment