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-03 18:25:21 +00:00
|
|
|
set :repo_url, 'git@0xacab.org:sutty/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
|