<commit_before>set :stages, %w(production)
set :default_stage, 'production'

require 'bundler/capistrano'
require 'capistrano/ext/multistage'

set :application, 'spaceholder.cc'

set :repository, '<EMAIL>:jgarber623/spaceholder.cc.git'
set :deploy_to, '/var/www/spaceholder-cc'
set :user, 'www-data'
set :deploy_via, :remote_cache
set :ssh_options, { forward_agent: true }
set :use_sudo, false

set :ruby_version, '2.2.3'
set :bundle_cmd, "chruby-exec #{ruby_version} -- bundle"

default_run_options[:shell] = '/bin/bash'

namespace :deploy do
  %w[start stop restart].each do |command|
    task command do<commit_msg>Add asset compilation to deploy script.<commit_after>set :stages, %w(production)
set :default_stage, 'production'

require 'bundler/capistrano'
require 'capistrano/ext/multistage'

set :application, 'spaceholder.cc'

set :repository, '<EMAIL>:jgarber623/spaceholder.cc.git'
set :deploy_to, '/var/www/spaceholder-cc'
set :user, 'www-data'
set :deploy_via, :remote_cache
set :ssh_options, { forward_agent: true }
set :use_sudo, false

set :ruby_version, '2.2.3'
set :bundle_cmd, "chruby-exec #{ruby_version} -- bundle"

default_run_options[:shell] = '/bin/bash'

before 'deploy:create_symlink', 'deploy:precompile_assets'

namespace :deploy do
  task :precompile_assets do
    run "cd #{release_path} && RACK_ENV=production #{bundle_cmd} exec rake assets:precompile"
  end

  %w[start stop restart].each do |command|
    task command do
{'fraction_non_alphanumeric': 0.1356749311294766, 'fraction_numerical': 0.008264462809917356, 'mean_word_length': 5.952153110047847, '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': '3660054', 'n_tokens_mistral': 536, 'n_tokens_neox': 512, 'n_words': 125}