This commit is contained in:
BoHung Chiu 2022-01-14 09:17:10 +08:00
parent 5dd9666ca2
commit 225103082a
1 changed files with 4 additions and 0 deletions

View File

@ -115,7 +115,11 @@ namespace :exec_commands do
command = command.gsub("{{rails_env}}",rails_env)
command = command.gsub("{{full_site_path}}",@site_construct.full_site_path)
command = command.gsub("{{site_name}}",@site_construct.site_name)
@command_i18n = @command_i18n.gsub("{{rails_env}}",rails_env)
@command_i18n = @command_i18n.gsub("{{full_site_path}}",@site_construct.full_site_path)
@command_i18n = @command_i18n.gsub("{{site_name}}",@site_construct.site_name)
exec_ssh_command_by_sudo_and_see_output(ssh,"bash -l -c 'cd #{@site_construct.path}/#{@site_construct.site_name};#{command}'", update_flag)
@command_i18n = nil
end
end
end