2018-02-02 22:50:45 +00:00
|
|
|
# frozen_string_literal: true
|
2019-03-26 15:32:20 +00:00
|
|
|
|
2018-02-02 22:50:45 +00:00
|
|
|
set :application, 'sutty'
|
2019-07-29 18:24:34 +00:00
|
|
|
set :repo_url, 'git@0xacab.org:itacate-kefir/sutty.git'
|
2018-02-02 22:50:45 +00:00
|
|
|
|
|
|
|
set :bundle_flags, '--deployment'
|
|
|
|
set :default_env, path: '/usr/lib/passenger/bin:$PATH'
|
|
|
|
|
2019-03-26 15:32:20 +00:00
|
|
|
set :linked_dirs, %w[_sites _deploy _usuarias _invitadxs public/covers]
|
|
|
|
set :linked_files, %w[.env db/production.sqlite3]
|
2018-10-31 21:57:30 +00:00
|
|
|
|
|
|
|
set :keep_releases, 1
|
2019-04-29 22:50:00 +00:00
|
|
|
|
|
|
|
before 'deploy:assets:precompile', 'deploy:yarn_install'
|
|
|
|
|
|
|
|
namespace :deploy do
|
|
|
|
desc 'Run rake yarn:install'
|
|
|
|
task :yarn_install do
|
|
|
|
on roles(:web) do
|
|
|
|
within release_path do
|
|
|
|
execute("cd #{release_path} && yarn install")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|