<commit_before># config valid only for current version of Capistrano
lock '3.4.1'

set :application, 'mercurius'
set :repo_url, '<EMAIL>:werthen/mercurius.git'

# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

# Default deploy_to directory is /var/www/my_app_name
role :web, 'mercurius.werthen.me'
set :deploy_to, '/var/www/mercurius'

# Default value for :scm is :git
set :scm, :git

# Default value for :format is :pretty
set :format, :pretty

set :user, 'mercurius'

set :use_sudo, false

set :ssh_options, forward_agent: true

# Default value for :log_level is :debug
# set :log_level, :debug

# Default value for :pty is false
# set :pty, true

# Default value for :linked_files is []
# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')

# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }

# Default value for keep_releases is 5
# set :keep_releases, 5

#namespace :deploy do
#  task :restart do
#    on primary roles :web do
#      run "touch #{current_path}/tmp/restart.txt"
#    end
#  end
#end
#
#after :deploy, 'deploy:restart'

namespace :passenger do
  desc "Restart Application"
  task :restart do
    on roles(:app) do
      with rails_env: fetch(:rails_env) do
        execute "touch #{current_path}/tmp/restart.txt"
      end
    end
    invoke 'delayed_job:restart'
  end
end

after :deploy, "passenger:restart"<commit_msg>maybe I shouldn't copy everything<commit_after># config valid only for current version of Capistrano
lock '3.4.1'

set :application, 'mercurius'
set :repo_url, '<EMAIL>:werthen/mercurius.git'

# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

# Default deploy_to directory is /var/www/my_app_name
role :web, 'mercurius.werthen.me'
set :deploy_to, '/var/www/mercurius'

# Default value for :scm is :git
set :scm, :git

# Default value for :format is :pretty
set :format, :pretty

set :user, 'mercurius'

set :use_sudo, false

set :ssh_options, forward_agent: true

# Default value for :log_level is :debug
# set :log_level, :debug

# Default value for :pty is false
# set :pty, true

# Default value for :linked_files is []
# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')

# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }

# Default value for keep_releases is 5
# set :keep_releases, 5

namespace :passenger do
  desc "Restart Application"
  task :restart do
    on roles(:app) do
      with rails_env: fetch(:rails_env) do
        execute "touch #{current_path}/tmp/restart.txt"
      end
    end
  end
end

after :deploy, "passenger:restart"
{'fraction_non_alphanumeric': 0.13296308395949036, 'fraction_numerical': 0.003266906239790918, 'mean_word_length': 4.390845070422535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2921242', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1068, 'n_words': 329}