Capistrano: Use RVM and link the db/ directory
This commit is contained in:
parent
6e3f6cca35
commit
36f973fa1b
2
Capfile
2
Capfile
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue