Permalink
Browse files

Config for new host

  • Loading branch information...
JasonBarnabe committed May 27, 2018
1 parent 986e2fa commit 3aedc66ba2023325e02630dc3df4c4950b083046
Showing with 20 additions and 14 deletions.
  1. +1 −1 Capfile
  2. +1 −1 Gemfile
  3. +4 −4 Gemfile.lock
  4. +9 −3 config/deploy.rb
  5. +1 −1 config/deploy/production.rb
  6. +4 −4 config/thinking_sphinx.yml
View
@@ -3,8 +3,8 @@ require "capistrano/setup"
# Include default deployment tasks
require "capistrano/deploy"
require 'capistrano/rbenv'
require 'capistrano/rvm'
require 'capistrano/rails'
require 'thinking_sphinx/capistrano'
require "capistrano/passenger"
View
@@ -52,7 +52,7 @@ group :development do
gem 'capistrano-rails', "~> 1.2"
gem 'capistrano-passenger'
gem 'capistrano-bundler', '~> 1.2'
gem 'capistrano-rvm'
gem 'capistrano-rbenv', '~> 2.1'
gem 'capistrano3-delayed-job', '~> 1.0'
gem 'better_errors'
gem 'binding_of_caller'
View
@@ -94,9 +94,9 @@ GEM
capistrano-rails (1.3.1)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
capistrano-rbenv (2.1.3)
capistrano (~> 3.1)
sshkit (~> 1.3)
capistrano3-delayed-job (1.7.5)
capistrano (~> 3.0, >= 3.0.0)
daemons (~> 1.2.4)
@@ -321,7 +321,7 @@ DEPENDENCIES
capistrano-bundler (~> 1.2)
capistrano-passenger
capistrano-rails (~> 1.2)
capistrano-rvm
capistrano-rbenv (~> 2.1)
capistrano3-delayed-job (~> 1.0)
coderay!
daemons
View
@@ -3,10 +3,16 @@
set :application, "greasyfork"
set :repo_url, "https://github.com/JasonBarnabe/greasyfork.git"
set :deploy_to, "/home/www/greasyfork"
set :rvm_ruby_version, '2.5.1'
set :deploy_to, "/www/greasyfork"
set :branch, ENV['BRANCH'] if ENV['BRANCH']
set :rbenv_type, :user
set :rbenv_ruby, File.read('.ruby-version').strip
append :linked_files, 'config/database.yml', 'config/newrelic.yml', 'config/production.sphinx.conf', 'config/secrets.yml', 'config/initializers/vanilla.rb', 'config/initializers/transifex.rb', 'config/initializers/omniauth.rb', 'config/initializers/detect_language.rb', 'bin/java', 'bin/simian.jar', 'bin/git'
#set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} #{fetch(:rbenv_path)}/bin/rbenv exec"
#set :rbenv_map_bins, %w{rake gem bundle ruby rails}
#set :rbenv_roles, :all # default value
append :linked_files, 'config/database.yml', 'config/newrelic.yml', 'config/production.sphinx.conf', 'config/secrets.yml', 'config/initializers/vanilla.rb', 'config/initializers/transifex.rb', 'config/initializers/omniauth.rb', 'config/initializers/detect_language.rb', 'bin/git'
append :linked_dirs, 'public/forum', 'public/system', 'log', 'tmp', 'public/data', 'public/cached_pages'
@@ -1 +1 @@
server "greasyfork.org", user: "www", roles: %w{app db web}
server "45.33.37.174", user: "deploy", roles: %w{app db web}
@@ -191,7 +191,7 @@ production:
ngram_len: 1
ngram_chars: U+4E00..U+9FBB, U+3400..U+4DB5, U+20000..U+2A6D6, U+FA0E, U+FA0F, U+FA11, U+FA13, U+FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27, U+FA28, U+FA29, U+3105..U+312C, U+31A0..U+31B7, U+3041, U+3043, U+3045, U+3047, U+3049, U+304B, U+304D, U+304F, U+3051, U+3053, U+3055, U+3057, U+3059, U+305B, U+305D, U+305F, U+3061, U+3063, U+3066, U+3068, U+306A..U+306F, U+3072, U+3075, U+3078, U+307B, U+307E..U+3083, U+3085, U+3087, U+3089..U+308E, U+3090..U+3093, U+30A1, U+30A3, U+30A5, U+30A7, U+30A9, U+30AD, U+30AF, U+30B3, U+30B5, U+30BB, U+30BD, U+30BF, U+30C1, U+30C3, U+30C4, U+30C6, U+30CA, U+30CB, U+30CD, U+30CE, U+30DE, U+30DF, U+30E1, U+30E2, U+30E3, U+30E5, U+30E7, U+30EE, U+30F0..U+30F3, U+30F5, U+30F6, U+31F0, U+31F1, U+31F2, U+31F3, U+31F4, U+31F5, U+31F6, U+31F7, U+31F8, U+31F9, U+31FA, U+31FB, U+31FC, U+31FD, U+31FE, U+31FF, U+AC00..U+D7A3, U+1100..U+1159, U+1161..U+11A2, U+11A8..U+11F9, U+A000..U+A48C, U+A492..U+A4C6
configuration_file: /home/www/greasyfork/shared/config/production.sphinx.conf
pid_file: /home/www/greasyfork/shared/tmp/searchd.pid
indices_location: /home/www/greasyfork/shared/db/sphinx
binlog_path: /home/www/greasyfork/shared/binlog
configuration_file: /www/greasyfork/shared/config/production.sphinx.conf
pid_file: /www/greasyfork/shared/tmp/searchd.pid
indices_location: /www/greasyfork/shared/db/sphinx
binlog_path: /www/greasyfork/shared/binlog

0 comments on commit 3aedc66

Please sign in to comment.