Upgrade procedure:
$ echo 2.6.3 > .ruby-version
# upgrade ruby-build to know about the latest ruby versions.
# see also: github.com/rkh/rbenv-update
$ cd ~/.rbenv/plugins/ruby-build && git pull
# install the version of ruby specified in .ruby-version.
# see also: github.com/capistrano/rbenv/issues/83
$ rbenv install --skip-existing
# update the shell to use the latest version of ruby by default.
$ rbenv global 2.6.3
# update rubygems and bundler
$ gem update --system
# update the lockfile to use the latest version of bundler
$ bundle update --bundler
17 lines
625 B
Ruby
17 lines
625 B
Ruby
set :stages, %w(production development staging)
|
|
set :default_stage, "staging"
|
|
set :application, "danbooru"
|
|
set :repo_url, "git://github.com/r888888888/danbooru.git"
|
|
set :deploy_to, "/var/www/danbooru2"
|
|
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
|
|
|
|
# how long unicorn:legacy_restart (used by deploy:rolling) waits until killing the old unicorn.
|
|
set :unicorn_restart_sleep_time, 10
|
|
|