<commit_before>set :application, 'poichecker'
set :repo_url, '<EMAIL>:sozialhelden/poichecker.git'

# set :deploy_to, '/var/apps/matchy/staging'
# set :scm, :git

 set :format, :pretty
 set :log_level, :debug
 set :pty, true

set :linked_files, %w{config/database.yml config/osm.yml config/geocoder.yml config/initializers/secret_token.rb}
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}

set :rbenv_type, :system # :user or :system, depends on your rbenv setup
set :rbenv_ruby, '2.1.0'
set :rbenv_custom_path, '/opt/rbenv'

# set :default_env, { path: "/opt/ruby/bin:$PATH" }
set :keep_releases, 5

namespace :deploy do

  desc 'Restart application'
  task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      # Your restart mechanism here, for example:
      # execute :touch, release_path.join('tmp/restart.txt')
      execute '/etc/init.d/unicorn_matchy upgrade'
    end
  end

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
      # within release_path do
      #   execute :rake, 'cache:clear'
      # end
    end
  end

  after :finishing, 'deploy:cleanup'

end

namespace :unicorn do

  task :reload do
    on roles(:app), in: :sequence, wait: 5 do
      execute '/etc/init.d/unicorn_matchy upgrade'
    end
  end
<commit_msg>Use correct start/stop script.<commit_after>set :application, 'poichecker'
set :repo_url, '<EMAIL>:sozialhelden/poichecker.git'

# set :deploy_to, '/var/apps/matchy/staging'
# set :scm, :git

 set :format, :pretty
 set :log_level, :debug
 set :pty, true

set :linked_files, %w{config/database.yml config/osm.yml config/geocoder.yml config/initializers/secret_token.rb}
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}

set :rbenv_type, :system # :user or :system, depends on your rbenv setup
set :rbenv_ruby, '2.1.0'
set :rbenv_custom_path, '/opt/rbenv'

# set :default_env, { path: "/opt/ruby/bin:$PATH" }
set :keep_releases, 5

namespace :deploy do

  desc 'Restart application'
  task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      # Your restart mechanism here, for example:
      # execute :touch, release_path.join('tmp/restart.txt')
      execute "/etc/init.d/poichecker_#{rails_env} upgrade"
    end
  end

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
      # within release_path do
      #   execute :rake, 'cache:clear'
      # end
    end
  end

  after :finishing, 'deploy:cleanup'

end

namespace :unicorn do

  task :reload do
    on roles(:app), in: :sequence, wait: 5 do
      execute '/etc/init.d/unicorn_matchy upgrade'
    end
  end

{'fraction_non_alphanumeric': 0.12490948587979725, 'fraction_numerical': 0.0065170166545981175, 'mean_word_length': 3.620401337792642, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3988029', 'n_tokens_mistral': 1030, 'n_tokens_neox': 982, 'n_words': 285}