<commit_before>require "rvm/capistrano"
require "bundler/capistrano"
require 'sidekiq/capistrano'

default_run_options[:pty] = true
ssh_options[:forward_agent] = true

set :application, "tyne"
set :repository,  "<EMAIL>:tyne/tyne.git"

set :scm, :git

role :web, "192.168.3.11"                          # Your HTTP server, Apache/etc
role :app, "192.168.3.11"                          # This may be the same as your `Web` server
role :db,  "192.168.3.11", :primary => true # This is where Rails migrations will run

set :rails_env, 'production'
set :branch, 'capistrano'

set :deploy_via, :remote_cache
set :use_sudo, false
set :user, "app"
set :port, 22
set :git_enable_submodules, 1
set :deploy_to, "/home/#{user}/#{application}"

set :rvm_ruby_string, "1.9.3@tyne"

after "deploy:restart", "deploy:cleanup"
after "deploy", "rvm:trust_rvmrc"

namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end

  task :after_hook do
    run "cd #{release_path} && /etc/tyne/after_hook"
  end

  task :assets do<commit_msg>no need for rvm trust<commit_after>require "rvm/capistrano"
require "bundler/capistrano"
require 'sidekiq/capistrano'

default_run_options[:pty] = true
ssh_options[:forward_agent] = true

set :application, "tyne"
set :repository,  "<EMAIL>:tyne/tyne.git"

set :scm, :git

role :web, "192.168.3.11"                          # Your HTTP server, Apache/etc
role :app, "192.168.3.11"                          # This may be the same as your `Web` server
role :db,  "192.168.3.11", :primary => true # This is where Rails migrations will run

set :rails_env, 'production'
set :branch, 'capistrano'

set :deploy_via, :remote_cache
set :use_sudo, false
set :user, "app"
set :port, 22
set :git_enable_submodules, 1
set :deploy_to, "/home/#{user}/#{application}"

set :rvm_ruby_string, "1.9.3@tyne"

after "deploy:restart", "deploy:cleanup"

namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end

  task :after_hook do
    run "cd #{release_path} && /etc/tyne/after_hook"
  end

  task :assets do
{'fraction_non_alphanumeric': 0.14543889845094665, 'fraction_numerical': 0.028399311531841654, 'mean_word_length': 3.803719008264463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4962704', 'n_tokens_mistral': 907, 'n_tokens_neox': 852, 'n_words': 236}