<commit_before>load "local/config/deploy.rb" if File.exists?("local/config/deploy.rb")

set :deploy_to, "/var/www/rails/#{application}"

load "config/db"
require 'bundler/capistrano'
require "capistrano-unicorn"

set :scm, "git"
set :repository, "git://github.com/scottwillson/racing_on_rails.git"
set :site_local_repository, "<EMAIL>:#{application}.git"
unless site_local_repository_branch
  set :site_local_repository_branch, nil
end
set :branch, "master"
set :deploy_via, :remote_cache
set :keep_releases, 5


set :user, "app"
set :use_sudo, false
set :scm_auth_cache, true

namespace :deploy do
  desc "Deploy association-specific customizations"
  task :local_code do
    if site_local_repository_branch
      run "git clone #{site_local_repository} -b #{site_local_repository_branch} #{release_path}/local"
    else
      run "git clone #{site_local_repository} #{release_path}/local"
    end
    run "chmod -R g+w #{release_path}/local"
    run "ln -s #{release_path}/local/public #{release_path}/public/local"
  end
  
  task :symlinks do
    run <<-CMD
      rm -rf #{latest_release}/tmp/pids &&
      ln -s #{shared_path}/pids #{latest_release}/tmp/pids &&
      rm -rf #{latest_release}/tmp/sockets &&<commit_msg>Fix order of site_local_repository_branch<commit_after>set :site_local_repository_branch, nil

load "local/config/deploy.rb" if File.exists?("local/config/deploy.rb")

set :deploy_to, "/var/www/rails/#{application}"

load "config/db"
require 'bundler/capistrano'
require "capistrano-unicorn"

set :scm, "git"
set :repository, "git://github.com/scottwillson/racing_on_rails.git"
set :site_local_repository, "<EMAIL>:#{application}.git"
set :branch, "master"
set :deploy_via, :remote_cache
set :keep_releases, 5


set :user, "app"
set :use_sudo, false
set :scm_auth_cache, true

namespace :deploy do
  desc "Deploy association-specific customizations"
  task :local_code do
    if site_local_repository_branch
      run "git clone #{site_local_repository} -b #{site_local_repository_branch} #{release_path}/local"
    else
      run "git clone #{site_local_repository} #{release_path}/local"
    end
    run "chmod -R g+w #{release_path}/local"
    run "ln -s #{release_path}/local/public #{release_path}/public/local"
  end
  
  task :symlinks do
    run <<-CMD
      rm -rf #{latest_release}/tmp/pids &&
      ln -s #{shared_path}/pids #{latest_release}/tmp/pids &&
      rm -rf #{latest_release}/tmp/sockets &&
{'fraction_non_alphanumeric': 0.13305954825462013, 'fraction_numerical': 0.0008213552361396304, 'mean_word_length': 4.638888888888889, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '715883', 'n_tokens_mistral': 858, 'n_tokens_neox': 832, 'n_words': 196}