# Load DSL and set up stages require 'capistrano/setup' # Include default deployment tasks require 'capistrano/deploy' # Configure Opscomplete deployment require 'capistrano/opscomplete' require 'capistrano/passenger' # Use Git require 'capistrano/scm/git' install_plugin Capistrano::SCM::Git # Include tasks from other gems included in your Gemfile require 'capistrano/bundler' require 'capistrano/maintenance' require 'capistrano/rails/assets' require 'capistrano/rails/migrations' require 'whenever/capistrano' Dir.glob('lib/capistrano/tasks/*.rake').sort.each do |r| # `import r` calls Rake.application.add_import(r), which imports the file only # *after* this file has been processed, so the imported tasks would not be # available to the hooks below. Rake.load_rakefile r end before 'deploy:updating', 'db:dump' after 'deploy:updating', 'opscomplete:ruby:ensure' after 'deploy:published', 'deploy:restart' after 'deploy:published', 'db:warn_if_pending_migrations' after 'deploy:published', 'db:show_dump_usage' after 'deploy:finished', 'deploy:cleanup' # https://makandracards.com/makandra/1432