lib/railman/tasks/set_railman_env.rake in railman-deployment-1.0.0 vs lib/railman/tasks/set_railman_env.rake in railman-deployment-1.0.1
- old
+ new
@@ -2,10 +2,10 @@
set :deploy_to, "/home/deploy/apps/#{fetch(:application)}"
set :rbenv_home, '/home/deploy/.rbenv'
set :environment, {path: "#{fetch(:rbenv_home)}/shims:#{fetch(:rbenv_home)}/bin:$PATH", rails_env: 'production'}
SSHKit.config.command_map[:rake] = "#{fetch(:deploy_to)}/bin/rake"
- %w(ln service start restart stop status certbot).each do |cmd|
+ %w(ln cp service start restart stop status certbot).each do |cmd|
SSHKit.config.command_map[cmd.to_sym] = "sudo #{cmd}"
end
SSHKit.config.command_map[:eye] = "#{fetch(:rbenv_home)}/shims/eye"
SSHKit.config.command_map[:su_rm] = 'sudo rm'
end