ruby-x.github.io/Capfile

23 lines
566 B
Plaintext
Raw Normal View History

2018-04-22 12:11:57 +02:00
# Load DSL and set up stages
2018-04-22 17:49:00 +02:00
require "capistrano/setup"
2018-04-22 12:11:57 +02:00
# Include default deployment tasks
2018-04-22 17:49:00 +02:00
require "capistrano/deploy"
2018-04-22 12:11:57 +02:00
2018-04-22 17:49:00 +02:00
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
2018-04-22 12:11:57 +02:00
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
2018-04-22 17:49:00 +02:00
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
2018-04-22 12:11:57 +02:00
2018-04-22 17:49:00 +02:00
require 'capistrano/rails'
require 'capistrano/passenger'
2019-02-09 19:43:56 +01:00
2019-02-09 19:49:05 +01:00
Rake::Task["deploy:migrate"].clear_actions
2019-02-09 19:43:56 +01:00
namespace :deploy do
2019-02-09 19:49:05 +01:00
desc "Override Capistrano's default behavior, do not migrate on deploy"
task :migrate do
puts 'No migrate'
2019-02-09 19:43:56 +01:00
end
2019-02-09 19:49:05 +01:00
end