This commit is contained in:
Mo Bitar
2018-01-29 12:14:13 -06:00
parent 21ebd4bbcb
commit 2445f6789e
3 changed files with 70 additions and 65 deletions

View File

@@ -3,6 +3,10 @@ require "capistrano/setup"
# Include default deployment tasks # Include default deployment tasks
require "capistrano/deploy" require "capistrano/deploy"
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
require "capistrano/scm/git-with-submodules"
install_plugin Capistrano::SCM::Git::WithSubmodules
# Include tasks from other gems included in your Gemfile # Include tasks from other gems included in your Gemfile
# #
@@ -25,11 +29,6 @@ require 'capistrano/passenger'
# require 'capistrano/sidekiq' # require 'capistrano/sidekiq'
# require "whenever/capistrano" # Update crontab on deploy # require "whenever/capistrano" # Update crontab on deploy
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
require "capistrano/scm/git-with-submodules"
install_plugin Capistrano::SCM::Git::WithSubmodules
# Load custom tasks from `lib/capistrano/tasks` if you have any defined # Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

View File

@@ -41,70 +41,72 @@ GEM
airbrussh (1.3.0) airbrussh (1.3.0)
sshkit (>= 1.6.1, != 1.7.0) sshkit (>= 1.6.1, != 1.7.0)
arel (7.1.4) arel (7.1.4)
binding_of_caller (0.7.2) binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1) debug_inspector (>= 0.0.1)
bower-rails (0.10.0) bower-rails (0.10.0)
builder (3.2.2) builder (3.2.3)
byebug (9.0.6) byebug (10.0.0)
capistrano (3.10.1) capistrano (3.10.1)
airbrussh (>= 1.0.0) airbrussh (>= 1.0.0)
i18n i18n
rake (>= 10.0.0) rake (>= 10.0.0)
sshkit (>= 1.9.0) sshkit (>= 1.9.0)
capistrano-bundler (1.2.0) capistrano-bundler (1.3.0)
capistrano (~> 3.1) capistrano (~> 3.1)
sshkit (~> 1.2) sshkit (~> 1.2)
capistrano-git-with-submodules (2.0.3) capistrano-git-with-submodules (2.0.3)
capistrano (~> 3.7) capistrano (~> 3.7)
capistrano-passenger (0.2.0) capistrano-passenger (0.2.0)
capistrano (~> 3.0) capistrano (~> 3.0)
capistrano-rails (1.2.0) capistrano-rails (1.3.1)
capistrano (~> 3.1) capistrano (~> 3.1)
capistrano-bundler (~> 1.1) capistrano-bundler (~> 1.1)
capistrano-rvm (0.1.2) capistrano-rvm (0.1.2)
capistrano (~> 3.0) capistrano (~> 3.0)
sshkit (~> 1.2) sshkit (~> 1.2)
capistrano-sidekiq (0.10.0) capistrano-sidekiq (1.0.0)
capistrano capistrano (>= 3.9.0)
sidekiq (>= 3.4) sidekiq (>= 3.4)
concurrent-ruby (1.0.2) concurrent-ruby (1.0.5)
connection_pool (2.2.1) connection_pool (2.2.1)
debug_inspector (0.0.2) crass (1.0.3)
dotenv (2.1.1) debug_inspector (0.0.3)
dotenv-rails (2.1.1) dotenv (2.1.2)
dotenv (= 2.1.1) dotenv-rails (2.1.2)
railties (>= 4.0, < 5.1) dotenv (= 2.1.2)
railties (>= 3.2, < 5.1)
erubis (2.7.0) erubis (2.7.0)
execjs (2.7.0) execjs (2.7.0)
globalid (0.3.7) ffi (1.9.18)
activesupport (>= 4.1.0) globalid (0.4.1)
haml (4.0.7) activesupport (>= 4.2.0)
haml (5.0.4)
temple (>= 0.8.0)
tilt tilt
i18n (0.9.3) i18n (0.9.3)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
json (1.8.3) json (1.8.6)
loofah (2.0.3) loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9) nokogiri (>= 1.5.9)
mail (2.6.4) mail (2.7.0)
mime-types (>= 1.16, < 4) mini_mime (>= 0.1.1)
method_source (0.8.2) method_source (0.9.0)
mime-types (3.1) mini_mime (1.0.0)
mime-types-data (~> 3.2015) mini_portile2 (2.3.0)
mime-types-data (3.2016.0521) minitest (5.11.3)
mini_portile2 (2.1.0)
minitest (5.9.1)
net-scp (1.2.1) net-scp (1.2.1)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh (4.2.0) net-ssh (4.2.0)
nio4r (1.2.1) nio4r (1.2.1)
nokogiri (1.6.8.1) nokogiri (1.8.2)
mini_portile2 (~> 2.1.0) mini_portile2 (~> 2.3.0)
non-stupid-digest-assets (1.0.9) non-stupid-digest-assets (1.0.9)
sprockets (>= 2.0) sprockets (>= 2.0)
puma (3.6.2) puma (3.11.2)
rack (2.0.1) rack (2.0.3)
rack-cors (1.0.0) rack-cors (1.0.2)
rack-protection (1.5.3) rack-protection (2.0.0)
rack rack
rack-test (0.6.3) rack-test (0.6.3)
rack (>= 1.0) rack (>= 1.0)
@@ -120,9 +122,9 @@ GEM
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 5.0.0.1) railties (= 5.0.0.1)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.1) rails-dom-testing (2.0.3)
activesupport (>= 4.2.0, < 6.0) activesupport (>= 4.2.0)
nokogiri (~> 1.6.0) nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3) rails-html-sanitizer (1.0.3)
loofah (~> 2.0) loofah (~> 2.0)
railties (5.0.0.1) railties (5.0.0.1)
@@ -132,49 +134,58 @@ GEM
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
rake (12.3.0) rake (12.3.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rdoc (4.3.0) rdoc (4.3.0)
redis (3.3.2) redis (4.0.1)
responders (2.3.0) responders (2.4.0)
railties (>= 4.2.0, < 5.1) actionpack (>= 4.2.0, < 5.3)
sass (3.4.22) railties (>= 4.2.0, < 5.3)
sass (3.5.5)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sdoc (0.4.2) sdoc (0.4.2)
json (~> 1.7, >= 1.7.7) json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0) rdoc (~> 4.0)
secure_headers (3.6.7) secure_headers (5.0.4)
useragent useragent (>= 0.15.0)
sidekiq (4.2.7) sidekiq (5.0.5)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0) connection_pool (~> 2.2, >= 2.2.0)
rack-protection (>= 1.5.0) rack-protection (>= 1.5.0)
redis (~> 3.2, >= 3.2.1) redis (>= 3.3.4, < 5)
spring (2.0.0) spring (2.0.2)
activesupport (>= 4.2) activesupport (>= 4.2)
sprockets (3.7.0) sprockets (3.7.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
rack (> 1, < 3) rack (> 1, < 3)
sprockets-rails (3.2.0) sprockets-rails (3.2.1)
actionpack (>= 4.0) actionpack (>= 4.0)
activesupport (>= 4.0) activesupport (>= 4.0)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sshkit (1.15.1) sshkit (1.15.1)
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
net-ssh (>= 2.8.0) net-ssh (>= 2.8.0)
thor (0.19.4) temple (0.8.0)
thread_safe (0.3.5) thor (0.20.0)
tilt (2.0.5) thread_safe (0.3.6)
tzinfo (1.2.2) tilt (2.0.8)
tzinfo (1.2.4)
thread_safe (~> 0.1) thread_safe (~> 0.1)
uglifier (3.0.3) uglifier (4.1.5)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
useragent (0.16.8) useragent (0.16.9)
web-console (2.3.0) web-console (2.3.0)
activemodel (>= 4.0) activemodel (>= 4.0)
binding_of_caller (>= 0.7.2) binding_of_caller (>= 0.7.2)
railties (>= 4.0) railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0) sprockets-rails (>= 2.0, < 4.0)
websocket-driver (0.6.4) websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2) websocket-extensions (0.1.3)
PLATFORMS PLATFORMS
ruby ruby
@@ -204,4 +215,4 @@ DEPENDENCIES
web-console (~> 2.0) web-console (~> 2.0)
BUNDLED WITH BUNDLED WITH
1.15.3 1.16.1

View File

@@ -1,6 +1,4 @@
CAP_CONFIG = YAML.load_file("config/cap.yml") CAP_CONFIG = YAML.load_file("config/cap.yml")
# config valid only for current version of Capistrano
lock '3.6.1'
set :application, 'neeto' set :application, 'neeto'
set :repo_url, CAP_CONFIG["default"]["repo_url"] set :repo_url, CAP_CONFIG["default"]["repo_url"]
@@ -11,9 +9,6 @@ set :repo_url, CAP_CONFIG["default"]["repo_url"]
# Default deploy_to directory is /var/www/my_app_name # Default deploy_to directory is /var/www/my_app_name
# set :deploy_to, '/var/www/my_app_name' # set :deploy_to, '/var/www/my_app_name'
# Default value for :scm is :git
set :scm, :git
# Default value for :format is :airbrussh. # Default value for :format is :airbrussh.
# set :format, :airbrussh # set :format, :airbrussh