From 225103082af07e3b2a8ad969e87057449b910226 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 14 Jan 2022 09:17:10 +0800 Subject: [PATCH] Updated. --- lib/tasks/exec_command.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/tasks/exec_command.rake b/lib/tasks/exec_command.rake index 0f432c8..2bf02ff 100644 --- a/lib/tasks/exec_command.rake +++ b/lib/tasks/exec_command.rake @@ -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