Capistrano: Use RVM and link the db/ directory

This commit is contained in:
Petko Bordjukov 2016-10-01 03:48:23 +03:00
parent 6e3f6cca35
commit 36f973fa1b
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ require 'capistrano/deploy'
# https://github.com/capistrano/rails
# https://github.com/capistrano/passenger
#
# require 'capistrano/rvm'
require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
require 'capistrano/bundler'

View File

@ -24,10 +24,10 @@ set :deploy_to, '/home/barf/gauge'
# set :pty, true
# Default value for :linked_files is []
append :linked_files, 'config/database.yml', 'config/secrets.yml', 'db/production.sqlite3'
append :linked_files, 'config/database.yml', 'config/secrets.yml'
# Default value for linked_dirs is []
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system'
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'db'
# Default value for default_env is {}
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
@ -35,7 +35,7 @@ append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bund
# Default value for keep_releases is 5
# set :keep_releases, 5
set :rvm_ruby_version, '2.2.2'
set :rvm_ruby_version, '2.3.1'
set :puma_bind, ["tcp://127.0.0.1:9088"]
set :puma_init_active_record, true