5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 01:51:41 +00:00
panel/config/deploy.rb

26 lines
617 B
Ruby
Raw Normal View History

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'
set :repo_url, 'git@0xacab.org:itacate-kefir/sutty.git'
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
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