<commit_before>$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"                 
set :rvm_ruby_string, 'ree-1.8.7-2011.03'

require 'bundler/capistrano'
require 'capistrano/ext/multistage' 
set :stages, %w(internal external)



set :application, "hms-hub"

set :scm, :git
set :repository,  "git://github.com/dhedlund/hms-hub.git"
set :branch, 'production'
set :git_shallow_clone, 1
set :scm_verbose, true

set :user, 'meduser'
set :deploy_to, "/var/www/apps/#{application}"



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

task :after_update_code, :roles => :app do
    run "cp #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end<commit_msg>deploy config should be working, with production branch<commit_after>$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"                 
set :rvm_ruby_string, 'ree-1.8.7-2011.03'

require 'bundler/capistrano'
require 'capistrano/ext/multistage' 
set :stages, %w(internal external)



set :application, "hms-hub"

set :scm, :git
set :repository,  "git://github.com/dhedlund/hms-hub.git"
set :branch, 'production'
set :git_shallow_clone, 1
set :scm_verbose, true

set :shared_files, %w(config/database.yml config/priv/delivery.yml)

set :user, 'meduser'
set :deploy_to, "/var/www/apps/#{application}"




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

task :after_update_code, :roles => :app do
    shared_files.each do |shared_file| 
      run "cp #{shared_path}/#{shared_file} #{release_path}/#{shared_file}"
    end
end
{'fraction_non_alphanumeric': 0.15376984126984128, 'fraction_numerical': 0.00992063492063492, 'mean_word_length': 4.266318537859008, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5168781', 'n_tokens_mistral': 762, 'n_tokens_neox': 728, 'n_words': 180}