<commit_before>set :rails_env, "production"
# Primary domain name of your application. Used in the Apache configs
set :domain, "unepwcmc-013.vm.brightbox.net"
## List of servers
server "unepwcmc-013.vm.brightbox.net", :app, :web, :db, :primary => true

set :server_name, "#{application}.unepwcmc-013.vm.brightbox.net"
set :sudo_user, "rails"
set :app_port, "80"

set :default_environment, {
  'PATH' => "/home/rails/.rvm/gems/ruby-2.0.0-p481/bin:/home/rails/.rvm/bin:/home/rails/.rvm/rubies/ruby-2.0.0-p481/bin:$PATH",
  'RUBY_VERSION' => 'ruby-2.0.0-p481',
  'GEM_HOME' => '/home/rails/.rvm/gems/ruby-2.0.0-p481',
  'GEM_PATH' => '/home/rails/.rvm/gems/ruby-2.0.0-p481',
}

desc "Configure VHost"
task :config_vhost do
vhost_config =<<-EOF
server {
  listen 80;

  client_max_body_size 4G;
  server_name #{application}.unepwcmc-013.vm.brightbox.net #{application}.sw01.matx.info;
  keepalive_timeout 5;
  root #{deploy_to}/current/public;
  passenger_enabled on;
  rails_env production;
  gzip on;
  location ^~ /assets/ {
   expires max;
    add_header Cache-Control public;
  }

  if (-f $document_root/system/maintenance.html) {
    return 503;
  }<commit_msg>remove default_environment from production<commit_after>set :rails_env, "production"
# Primary domain name of your application. Used in the Apache configs
set :domain, "unepwcmc-013.vm.brightbox.net"
## List of servers
server "unepwcmc-013.vm.brightbox.net", :app, :web, :db, :primary => true

set :server_name, "#{application}.unepwcmc-013.vm.brightbox.net"
set :sudo_user, "rails"
set :app_port, "80"

desc "Configure VHost"
task :config_vhost do
vhost_config =<<-EOF
server {
  listen 80;

  client_max_body_size 4G;
  server_name #{application}.unepwcmc-013.vm.brightbox.net #{application}.sw01.matx.info;
  keepalive_timeout 5;
  root #{deploy_to}/current/public;
  passenger_enabled on;
  rails_env production;
  gzip on;
  location ^~ /assets/ {
   expires max;
    add_header Cache-Control public;
  }

  if (-f $document_root/system/maintenance.html) {
    return 503;
  }
{'fraction_non_alphanumeric': 0.1491442542787286, 'fraction_numerical': 0.037163814180929094, 'mean_word_length': 4.300518134715026, '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': '5740302', 'n_tokens_mistral': 864, 'n_tokens_neox': 781, 'n_words': 161}