<commit_before>#############
# Application
set :application, "web-proxy"
set :keep_releases, 10

########
# Stages
set :stages, %w(testserver staging production)
set :default_stage, "testserver"
require 'capistrano/ext/multistage'

#############
# RVM support
# Add RVM's lib directory to the load path.
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
# Load RVM's capistrano plugin.
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.2'
set :rvm_type, :system

set :user, "deploy"
set :use_sudo,    false

# Repository
set :scm, :git
set :repository,  "<EMAIL>:Factlink/web-proxy.git"

set :deploy_to, "/applications/#{application}"
set :deploy_via, :remote_cache    # only fetch changes since since last

ssh_options[:forward_agent] = true

# don't touch all static files:
set :normalize_asset_timestamps, false

namespace :deploy do

  task :build do
  end

  task :start do
    deploy.stop
    run "sh #{current_path}/bin/server/start_proxy.sh"
  end

  task :stop do
    run "sh #{current_path}/bin/server/stop_proxy.sh"
  end

  task :restart, :roles => :app, :except => { :no_release => true } do
    deploy.start
  end
end

after 'deploy:update', 'deploy:cleanup'
<commit_msg>Removed rvm in capistrano<commit_after>#############
# Application
set :application, "web-proxy"
set :keep_releases, 10

########
# Stages
set :stages, %w(testserver staging production)
set :default_stage, "testserver"
require 'capistrano/ext/multistage'

set :user, "deploy"
set :use_sudo,    false

# Repository
set :scm, :git
set :repository,  "<EMAIL>:Factlink/web-proxy.git"

set :deploy_to, "/applications/#{application}"
set :deploy_via, :remote_cache    # only fetch changes since since last

ssh_options[:forward_agent] = true

# don't touch all static files:
set :normalize_asset_timestamps, false

namespace :deploy do

  task :build do
  end

  task :start do
    deploy.stop
    run "sh #{current_path}/bin/server/start_proxy.sh"
  end

  task :stop do
    run "sh #{current_path}/bin/server/stop_proxy.sh"
  end

  task :restart, :roles => :app, :except => { :no_release => true } do
    deploy.start
  end
end

after 'deploy:update', 'deploy:cleanup'

{'fraction_non_alphanumeric': 0.1468952734012975, 'fraction_numerical': 0.003243744207599629, 'mean_word_length': 4.622395833333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1975201', 'n_tokens_mistral': 788, 'n_tokens_neox': 747, 'n_words': 207}