<commit_before>set :environment, (ENV['target'] || 'staging')

# Change repo and domain for your setup
if environment == 'production'
  set :domain, 'belushi.sunlightlabs.org'
else
  set :domain, 'hammond.sunlightlabs.org'
end

set :application, "tcorps_#{environment}"
set :branch, 'master'
set :user, 'tcorps'

set :scm, :git
set :repository, "<EMAIL>:sunlightlabs/tcorps.git"
 
set :deploy_to, "/home/tcorps/www/#{application}"
set :deploy_via, :remote_cache
 
role :app, domain
role :web, domain
 
set :runner, user
set :admin_runner, runner
 
after "deploy", "deploy:cleanup"
 
namespace :deploy do    
  desc "Restart the server"
  task :restart, :roles => [:web, :app] do
    run "touch #{deploy_to}/current/tmp/restart.txt"
  end
  
  desc "Migrate the database"
  task :migrate, :roles => [:web, :app] do
    run "cd #{deploy_to}/current && rake db:migrate RAILS_ENV=#{environment}"
    deploy.restart
  end
  
  desc "Get shared files into position"
  task :after_update_code, :roles => [:web, :app] do
    run "ln -nfs #{shared_path}/database.yml #{release_path}/config/database.yml"
    run "ln -nfs #{shared_path}/mailer.rb #{release_path}/config/initializers/mailer.rb"
    run "ln -nfs #{shared_path}/#{environment}.sqlite3 #{release_path}/db/#{environment}.sqlite3"
  end
  
  desc "Initial deploy"
  task :cold do
    deploy.update
    deploy.migrate
  end
end<commit_msg>No deploy environment is using SQLite3, so don't need to manage the DB file in the deploy script anymore<commit_after>set :environment, (ENV['target'] || 'staging')

# Change repo and domain for your setup
if environment == 'production'
  set :domain, 'belushi.sunlightlabs.org'
else
  set :domain, 'hammond.sun<EMAIL>'
end

set :application, "tcorps_#{environment}"
set :branch, 'master'
set :user, 'tcorps'

set :scm, :git
set :repository, "<EMAIL>:sunlightlabs/tcorps.git"
 
set :deploy_to, "/home/tcorps/www/#{application}"
set :deploy_via, :remote_cache
 
role :app, domain
role :web, domain
 
set :runner, user
set :admin_runner, runner
 
after "deploy", "deploy:cleanup"
 
namespace :deploy do    
  desc "Restart the server"
  task :restart, :roles => [:web, :app] do
    run "touch #{deploy_to}/current/tmp/restart.txt"
  end
  
  desc "Migrate the database"
  task :migrate, :roles => [:web, :app] do
    run "cd #{deploy_to}/current && rake db:migrate RAILS_ENV=#{environment}"
    deploy.restart
  end
  
  desc "Get shared files into position"
  task :after_update_code, :roles => [:web, :app] do
    run "ln -nfs #{shared_path}/database.yml #{release_path}/config/database.yml"
    run "ln -nfs #{shared_path}/mailer.rb #{release_path}/config/initializers/mailer.rb"
  end
  
  desc "Initial deploy"
  task :cold do
    deploy.update
    deploy.migrate
  end
end
{'fraction_non_alphanumeric': 0.13924050632911392, 'fraction_numerical': 0.00108499095840868, 'mean_word_length': 4.288718929254302, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, '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': '1151074', 'n_tokens_mistral': 1005, 'n_tokens_neox': 982, 'n_words': 274}