fix cap
This commit is contained in:
parent
4d19a5790f
commit
90335ebdca
6
Capfile
6
Capfile
|
@ -1,9 +1,6 @@
|
|||
# Load DSL and set up stages
|
||||
require 'capistrano/setup'
|
||||
|
||||
require "capistrano/scm/git"
|
||||
install_plugin Capistrano::SCM::Git
|
||||
|
||||
# Include default deployment tasks
|
||||
require 'capistrano/deploy'
|
||||
|
||||
|
@ -26,3 +23,6 @@ require 'capistrano/passenger'
|
|||
|
||||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
||||
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
||||
|
||||
require "capistrano/scm/git"
|
||||
install_plugin Capistrano::SCM::Git
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# config valid only for current version of Capistrano
|
||||
lock '3.4.1'
|
||||
lock '3.8.1'
|
||||
|
||||
set :application, 'webdev'
|
||||
set :repo_url, 'git@github.com:webdev-camp/webdev.camp.git'
|
||||
|
@ -16,8 +16,6 @@ set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/
|
|||
# Default value for default_env is {}
|
||||
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
|
||||
|
||||
set :use_sudo, false
|
||||
|
||||
namespace :deploy do
|
||||
|
||||
after :restart, :clear_cache do
|
||||
|
|
|
@ -6,5 +6,3 @@
|
|||
server 'webdev.camp', user: 'webdev', roles: %w{app db web}
|
||||
# server 'example.com', user: 'deploy', roles: %w{app web}, other_property: :other_value
|
||||
# server 'db.example.com', user: 'deploy', roles: %w{db}
|
||||
|
||||
set :passenger_restart_with_touch, true
|
||||
|
|
Loading…
Reference in New Issue