28 lines
585 B
Ruby
28 lines
585 B
Ruby
require_relative 'npm'
|
|
|
|
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
|
|
|
|
# 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'
|