<commit_before>set :application, 'teikei'
set :repo_url, '<EMAIL>:teikei/teikei.git'
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml', '.env')
set :rails_env, 'production'

Airbrussh.configure do |config|
  config.banner = 'Teikei Deployment'
  config.command_output = true
end

task :build_client do
  on roles(:app) do
    within release_path do
      execute *%w[ ./teikei.sh deploy_client ]
    end
  end
end

namespace :uploads do
  task :mv_rails_app_dir
  on roles(:app) do
    run "mv #{release_path}/server/* #{release_path}/ "
  end
end

before 'deploy:check:directories', 'uploads:mv_rails_app_dir'
before 'deploy:updated', 'build_client'<commit_msg>Use different lifecycle hook.<commit_after>set :application, 'teikei'
set :repo_url, '<EMAIL>:teikei/teikei.git'
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml', '.env')
set :rails_env, 'production'

Airbrussh.configure do |config|
  config.banner = 'Teikei Deployment'
  config.command_output = true
end

task :build_client do
  on roles(:app) do
    within release_path do
      execute *%w[ ./teikei.sh deploy_client ]
    end
  end
end

namespace :uploads do
  task :mv_rails_app_dir
  on roles(:app) do
    execute *%w[ mv "#{release_path}/server/*" "#{release_path}/" ]
  end
end

before 'deploy:symlink:linked_files', 'uploads:mv_rails_app_dir'
before 'deploy:updated', 'build_client'
{'fraction_non_alphanumeric': 0.13671061762664816, 'fraction_numerical': 0.0, 'mean_word_length': 5.0588235294117645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4191822', 'n_tokens_mistral': 533, 'n_tokens_neox': 512, 'n_words': 123}