<commit_before>set :application, 'battle_game_server'
set :repository, '<EMAIL>:lockersoft/battle_game_server.git'
set :repo_url, '<EMAIL>:lockersoft/battle_game_server.git'

set :user, 'battleserver'
set :deploy_to, '/home/rails/'
set :scm, :git
set :user_sudo, false
set :rails_env, "production"

default_run_options[:pty] = true

role :web, "battleserver.com"
role :app, "battleserver.com"
role :db, "battleserver.com", :primary => true
# set :format, :pretty
# set :log_level, :debug
 set :pty, true
set :deploy_to, '/home/rails'

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

# 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
      run 'service unicorn restart'
    end
  end
  
  task :updated do 
  end

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:<commit_msg>deploy<commit_after>set :application, 'battlegameserver'
set :repository, '<EMAIL>:lockersoft/battle_game_server.git'
set :repo_url, '<EMAIL>:lockersoft/battle_game_server.git'

set :user, 'rails'
set :deploy_to, '/home/rails'
set :scm, :git
set :user_sudo, false
set :branch, "master"
set :rails_env, "production"
set :deploy_via, :copy
set :keep_releases, 3

default_run_options[:pty] = true


role :web, "battleserver.com"
role :app, "battleserver.com"
role :db, "battleserver.com", :primary => true
# set :format, :pretty
# set :log_level, :debug
 set :pty, true
set :deploy_to, '/home/rails'

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

# 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
      run 'service unicorn restart'
    end
  end
  
  desc 'Updated'
  task :updated do 
  end

  after :restart, :clear_cache do
    on roles(:web), in: :groups, limit: 3, wait: 10 do
      # Here we can do anything such as:
{'fraction_non_alphanumeric': 0.1375, 'fraction_numerical': 0.004910714285714286, 'mean_word_length': 4.547029702970297, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2707360', 'n_tokens_mistral': 877, 'n_tokens_neox': 821, 'n_words': 238}