<commit_before>server '0.0.0.0', user: 'myuser', roles: [:web, :app, :db], primary: true, asset_host_syncher: true

set :rails_env, 'production'

set :application, 'sp-gestion.fr'

# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }

set :deploy_to, "/home/path/to/application/#{fetch(:application)}"
set :scm, :git

set :repo_url, '<EMAIL>:osaris/sp-gestion.git'
set :branch, 'master'

set :format, :pretty
set :log_level, :info
# set :pty, true

# 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

# set :newrelic_license_key, ''
# set :newrelic_appname, ''

SSHKit.config.command_map[:rake]  = "bundle exec rake"
SSHKit.config.command_map[:rails] = "bundle exec rails"

namespace :deploy do
  desc 'Restart application'<commit_msg>Symlink folders in capistrano deploy script.<commit_after>server '0.0.0.0', user: 'myuser', roles: [:web, :app, :db], primary: true, asset_host_syncher: true

set :rails_env, 'production'

set :application, 'sp-gestion.fr'

# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }

set :deploy_to, "/home/path/to/application/#{fetch(:application)}"
set :scm, :git

set :repo_url, '<EMAIL>:osaris/sp-gestion.git'
set :branch, 'master'

set :format, :pretty
set :log_level, :info
# set :pty, true

# 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

# set :newrelic_license_key, ''
# set :newrelic_appname, ''

SSHKit.config.command_map[:rake]  = "bundle exec rake"
SSHKit.config.command_map[:rails] = "bundle exec rails"

namespace :deploy do
  desc 'Restart application'
{'fraction_non_alphanumeric': 0.16404128191200434, 'fraction_numerical': 0.005431830526887561, 'mean_word_length': 5.308219178082192, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4476149', 'n_tokens_mistral': 723, 'n_tokens_neox': 695, 'n_words': 170}