capistrano: enable conditional migrations.
This commit is contained in:
@@ -4,5 +4,11 @@ set :application, "danbooru"
|
||||
set :repo_url, "git://github.com/r888888888/danbooru.git"
|
||||
set :deploy_to, "/var/www/danbooru2"
|
||||
set :rbenv_ruby, "2.5.1"
|
||||
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle')
|
||||
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "vendor/bundle"
|
||||
set :branch, ENV.fetch("branch", "master")
|
||||
|
||||
# skip migrations if files in db/migrate weren't modified
|
||||
set :conditionally_migrate, true
|
||||
|
||||
# run migrations on the primary app server
|
||||
set :migration_role, :app
|
||||
|
||||
Reference in New Issue
Block a user