<commit_before>require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'

# Basic settings:
#   domain       - The hostname to SSH to.
#   deploy_to    - Path to deploy into.
#   repository   - Git repo to clone from. (needed by mina/git)
#   branch       - Branch name to deploy. (needed by mina/git)

set :domain, 'pnq.cc'
set :user, 'qhwa'
set :deploy_to, '/home/webapp/xiaotuhe'
set :repository, 'https://github.com/qhwa/xiaotuhe-server.git'
set :branch, 'master'

set :unicorn_config,  "#{deploy_to}/shared/config/unicorn.rb"
set :unicorn_pid,     "#{deploy_to}/tmp/pids/unicorn.pid"

set :shared_paths, [
  'config/database.yml',
  'config/github_oauth.yml',
  'config/unicorn.rb',
  'config/initializers/secret_token.rb',
  'config/initializers/google_analytics.rb',
  'public/uploads',
  'public/shares',
  'log',
  'db'
]

task :environment do
  invoke :'rvm:use[ruby-2.1.1@default]'
end

# Put any custom mkdir's in here for when `mina setup` is ran.
# For Rails apps, we'll make some of the shared paths that are shared between<commit_msg>fix bug of unchanging db/schema.rb<commit_after>require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'

# Basic settings:
#   domain       - The hostname to SSH to.
#   deploy_to    - Path to deploy into.
#   repository   - Git repo to clone from. (needed by mina/git)
#   branch       - Branch name to deploy. (needed by mina/git)

set :domain, 'pnq.cc'
set :user, 'qhwa'
set :deploy_to, '/home/webapp/xiaotuhe'
set :repository, 'https://github.com/qhwa/xiaotuhe-server.git'
set :branch, 'master'

set :unicorn_config,  "#{deploy_to}/shared/config/unicorn.rb"
set :unicorn_pid,     "#{deploy_to}/tmp/pids/unicorn.pid"

set :shared_paths, [
  'config/database.yml',
  'config/github_oauth.yml',
  'config/unicorn.rb',
  'config/initializers/secret_token.rb',
  'config/initializers/google_analytics.rb',
  'public/uploads',
  'public/shares',
  'log',
  'db/production.sqlite3'
]

task :environment do
  invoke :'rvm:use[ruby-2.1.1@default]'
end

# Put any custom mkdir's in here for when `mina setup` is ran.
# For Rails apps, we'll make some of the shared paths that are shared between
{'fraction_non_alphanumeric': 0.14076782449725778, 'fraction_numerical': 0.0031992687385740404, 'mean_word_length': 3.8536585365853657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1950198', 'n_tokens_mistral': 836, 'n_tokens_neox': 805, 'n_words': 207}