2015-08-10 21:50:52 +03:00
|
|
|
# Load DSL and set up stages
|
2019-04-28 21:10:54 +03:00
|
|
|
require "capistrano/setup"
|
2014-08-31 17:18:10 +03:00
|
|
|
|
2015-08-10 21:50:52 +03:00
|
|
|
# Include default deployment tasks
|
2019-04-28 21:10:54 +03:00
|
|
|
require "capistrano/deploy"
|
2014-08-31 17:18:10 +03:00
|
|
|
|
2019-04-28 01:06:44 +03:00
|
|
|
require "capistrano/scm/git"
|
|
|
|
install_plugin Capistrano::SCM::Git
|
|
|
|
|
2015-08-10 21:50:52 +03:00
|
|
|
# Include tasks from other gems included in your Gemfile
|
2014-08-31 17:18:10 +03:00
|
|
|
#
|
|
|
|
# For documentation on these, see for example:
|
|
|
|
#
|
|
|
|
# https://github.com/capistrano/rvm
|
|
|
|
# https://github.com/capistrano/rbenv
|
|
|
|
# https://github.com/capistrano/chruby
|
|
|
|
# https://github.com/capistrano/bundler
|
|
|
|
# https://github.com/capistrano/rails
|
2015-08-10 21:50:52 +03:00
|
|
|
# https://github.com/capistrano/passenger
|
2014-08-31 17:18:10 +03:00
|
|
|
#
|
2019-04-29 00:01:33 +03:00
|
|
|
require 'capistrano/rvm'
|
2014-08-31 17:18:10 +03:00
|
|
|
# require 'capistrano/rbenv'
|
|
|
|
# require 'capistrano/chruby'
|
2019-04-28 21:10:54 +03:00
|
|
|
require "capistrano/bundler"
|
|
|
|
require "capistrano/rails/assets"
|
|
|
|
require "capistrano/rails/migrations"
|
|
|
|
require "capistrano/puma"
|
2019-04-29 00:14:57 +03:00
|
|
|
install_plugin Capistrano::Puma # Default puma tasks
|
|
|
|
install_plugin Capistrano::Puma::Workers # if you want to control the workers (in cluster mode)
|
|
|
|
install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
|
2015-08-15 06:20:50 +03:00
|
|
|
# require 'capistrano/puma/nginx' # if you want to upload a nginx site template
|
2015-08-10 21:50:52 +03:00
|
|
|
# require 'capistrano/passenger'
|
2016-03-17 11:27:53 +02:00
|
|
|
# require 'capistrano/rvm'
|
2014-08-31 17:18:10 +03:00
|
|
|
|
2015-08-10 21:50:52 +03:00
|
|
|
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
2019-04-28 21:10:54 +03:00
|
|
|
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
|