try to add using new rvm

This commit is contained in:
2015-11-28 19:53:16 +08:00
parent 3c5663f3e7
commit 85b19e750c
+4
View File
@@ -10,6 +10,7 @@ set :repo_url, 'git@github.com:Librcn/Libr.git'
set :user, 'deployer'
set :puma_threads, [4, 16]
set :puma_workers, 0
set :rvm_ruby_string, :local
# Don't change these unless you know what you're doing
# set :pty, true
@@ -84,6 +85,9 @@ namespace :deploy do
end
end
before 'deploy', 'rvm:install_rvm' # install/update RVM
before 'deploy', 'rvm:install_ruby' #
after 'deploy:updated', 'sidekiq:stop'
after 'deploy:reverted', 'sidekiq:stop'
after 'deploy:published', 'sidekiq:start'