<commit_before>server 'beta.nolotiro.org', user: 'ruby-data', roles: %w{db web app}

set :stage, :staging
set :rails_env, 'staging' 
set :deploy_to, '/var/www/beta.nolotiro.org'
set :branch, "staging"

set :rbenv_type, :user
set :rbenv_ruby, '2.1.2'

namespace :deploy do

  desc 'Start application'
  task :start do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "/etc/init.d/unicorn_beta.nolotiro.org.sh start"
    end
  end

  desc 'Stop application'
  task :stop do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "/etc/init.d/unicorn_beta.nolotiro.org.sh stop"
    end
  end

  desc 'Restart application'
  task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "/etc/init.d/god restart"
      sudo "/etc/init.d/unicorn_beta.nolotiro.org.sh stop"
      within release_path do
        execute :rake, 'nolotiro:cache:clear'
      end
      sudo "/etc/init.d/unicorn_beta.nolotiro.org.sh start"
    end
  end

end<commit_msg>[deploy] better deploy with god<commit_after>server 'beta.nolotiro.org', user: 'ruby-data', roles: %w{db web app}

set :stage, :staging
set :rails_env, 'staging' 
set :deploy_to, '/var/www/beta.nolotiro.org'
set :branch, "staging"

set :rbenv_type, :user
set :rbenv_ruby, '2.1.2'

namespace :deploy do

  desc 'Start application'
  task :start do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "service god start"
    end
  end

  desc 'Stop application'
  task :stop do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "service god stop"
    end
  end

  desc 'Restart application'
  task :restart do
    on roles(:app), in: :sequence, wait: 5 do
      sudo "service god restart"
      within release_path do
        execute :rake, 'nolotiro:cache:clear'
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.12563667232597622, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 3.0737327188940093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6166543', 'n_tokens_mistral': 687, 'n_tokens_neox': 644, 'n_words': 194}