<commit_before>set :user, "deployer"
# ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "keypair")]
set :ssh_options, {:forward_agent => true}
ssh_options[:user] = "deployer"
default_run_options[:pty] = true

set :application, "neighborparrot"
set :repository,  "<EMAIL>:harlock/neighborparrot.git"
set :use_sudo, false
set :deploy_to, "/var/local/apps/neighborparrot"
set :scm, :git
set :branch, "master"
set :deploy_via, :remote_cache

role :web, "neighborparrot.net"
role :app, "neighborparrot.net"
role :db,  "neighborparrot.net", :primary => true


namespace :deploy do

  # task :puppet, :roles => :app do
  #   run "sudo puppet agent -t"
  # end

  #----------------------------------------------------------------------
  # Server control
  #----------------------------------------------------------------------

  task :start, :roles => :app do
    run "sudo /etc/init.d/neighborparrot start"
  end

  task :stop, :roles => :app do
    run "sudo /etc/init.d/neighborparrot stop"
  end

  task :restart, :roles => :app do
    run "sudo /etc/init.d/neighborparrot restart"
  end

  #----------------------------------------------------------------------
  # db tasks
  #----------------------------------------------------------------------

  task :migrate, :roles => :app do
  end

  task :migrate_redo, :roles => :app do
  end

  task :disable do
  end

  task :enable do
  end

  task :prepare_app do
    # copy the configuration to the correct place
    # run "cp /etc/capistrano/neighborparrot-site/database.yml #{release_path}/config/database.yml"
    run "cd #{release_path} && bundle install --without=test development --deployment"
  end

  after "deploy:update_code", "deploy:prepare_app"
end
<commit_msg>Capistrano copy the broker conf after deploy<commit_after>set :user, "deployer"
# ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "keypair")]
set :ssh_options, {:forward_agent => true}
ssh_options[:user] = "deployer"
default_run_options[:pty] = true

set :application, "neighborparrot"
set :repository,  "<EMAIL>:harlock/neighborparrot.git"
set :use_sudo, false
set :deploy_to, "/var/local/apps/neighborparrot"
set :scm, :git
set :branch, "master"
set :deploy_via, :remote_cache

role :web, "neighborparrot.net"
role :app, "neighborparrot.net"
role :db,  "neighborparrot.net", :primary => true


namespace :deploy do

  # task :puppet, :roles => :app do
  #   run "sudo puppet agent -t"
  # end

  #----------------------------------------------------------------------
  # Server control
  #----------------------------------------------------------------------

  task :start, :roles => :app do
    run "sudo /etc/init.d/neighborparrot start"
  end

  task :stop, :roles => :app do
    run "sudo /etc/init.d/neighborparrot stop"
  end

  task :restart, :roles => :app do
    run "sudo /etc/init.d/neighborparrot restart"
  end

  #----------------------------------------------------------------------
  # db tasks
  #----------------------------------------------------------------------

  task :migrate, :roles => :app do
  end

  task :migrate_redo, :roles => :app do
  end

  task :disable do
  end

  task :enable do
  end

  task :prepare_app do
    # copy the configuration to the correct place
    run "cp /etc/capistrano/neighborparrot/broker.rb #{release_path}/config/broker.rb"
    run "cd #{release_path} && bundle install --without=test development --deployment"
  end

  after "deploy:update_code", "deploy:prepare_app"
end

{'fraction_non_alphanumeric': 0.27691421991940124, 'fraction_numerical': 0.0, 'mean_word_length': 1.9879621668099743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '2831432', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1071, 'n_words': 290}