[deploy] config

This commit is contained in:
2018-01-01 20:42:55 +03:00
parent f1156d0779
commit 7209a297d7
4 changed files with 34 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
require_relative 'npm'
require_relative 'config'
app = 'tankz'
user = 'holop'
@@ -13,6 +14,9 @@ set :deploy_to, "/home/#{user}/repo/#{app}"
set :format, :airbrussh
set :format_options, command_output: false
# config
before 'deploy:updated', 'config:setup'
# npm
set :npm_target_path, -> { "/home/#{fetch(:user)}/npm" }
set :npm_flags, '--silent --no-spin'