<commit_before># config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'guclink_www'
set :repo_url, '<EMAIL>:ah450/guclink-www.git'

# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

# Default deploy_to directory is /var/www/my_app_name
# set :deploy_to, '/var/www/my_app_name'
set :deploy_to, '/root/guclink_www'

# Default value for :scm is :git
# set :scm, :git

# Default value for :format is :pretty
# set :format, :pretty

# Default value for :log_level is :debug
# set :log_level, :debug

# Default value for :pty is false
# set :pty, true

# Default value for :linked_files is []
# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')

# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }

# Default value for keep_releases is 5
set :keep_releases, 1

namespace :deploy do

  desc 'Install node modules'
  task :install_node_modules do
    on roles(:web) do
      within release_path do
        execute :npm, 'install'
      end
    end
  end

  desc 'Deploy application'
  task :deploy_npm do
    on roles(:web) do
      within release_path do
        execute :npm, 'run', 'deploy'
      end
    end
  end

  desc 'Chown srv to nginx'
  task :set_nginx_permissions do
    on roles(:web) do
      execute :chown, '-R', 'nginx:nginx', '/srv/www'
      execute :restorecon, '-R', '-v', '/srv/www'<commit_msg>Changes npm deploy install to global<commit_after># config valid only for current version of Capistrano
lock '3.4.0'

set :application, 'guclink_www'
set :repo_url, '<EMAIL>:ah450/guclink-www.git'

# Default branch is :master
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp

# Default deploy_to directory is /var/www/my_app_name
# set :deploy_to, '/var/www/my_app_name'
set :deploy_to, '/root/guclink_www'

# Default value for :scm is :git
# set :scm, :git

# Default value for :format is :pretty
# set :format, :pretty

# Default value for :log_level is :debug
# set :log_level, :debug

# Default value for :pty is false
# set :pty, true

# Default value for :linked_files is []
# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')

# Default value for linked_dirs is []
# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system')

# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }

# Default value for keep_releases is 5
set :keep_releases, 1

namespace :deploy do

  desc 'Install node modules'
  task :install_node_modules do
    on roles(:web) do
      within release_path do
        execute :npm, 'install', '-g'
      end
    end
  end

  desc 'Deploy application'
  task :deploy_npm do
    on roles(:web) do
      within release_path do
        execute :npm, 'run', 'deploy'
      end
    end
  end

  desc 'Chown srv to nginx'
  task :set_nginx_permissions do
    on roles(:web) do
      execute :chown, '-R', 'nginx:nginx', '/srv/www'
      execute :restorecon, '-R', '-v', '/srv/www'
{'fraction_non_alphanumeric': 0.13357731015553523, 'fraction_numerical': 0.004879536444037816, 'mean_word_length': 3.7262247838616713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, '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': '7509560', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1140, 'n_words': 361}