Files
tankz/config/deploy.rb
2018-01-01 20:42:55 +03:00

32 lines
661 B
Ruby

require_relative 'npm'
require_relative 'config'
app = 'tankz'
user = 'holop'
# git
set :application, app
set :repo_url, "git@bitbucket.org:shmyga/#{app}.git"
set :user, user
set :deploy_to, "/home/#{user}/repo/#{app}"
# airbrussh
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'
set :npm_roles, :web
set :npm_env_variables, {}
# gulp
set :gulp_target_path, -> { release_path }
set :gulp_tasks, 'client'
set :gulp_flags, '--no-color'
set :gulp_roles, :web
before 'deploy:updated', 'gulp'