This commit is contained in:
chiu 2020-02-22 14:34:17 +08:00
parent 637d728e33
commit 81a9c2aef4
1 changed files with 2 additions and 2 deletions

View File

@ -97,11 +97,11 @@ if old_gemfile_text != new_gemfile_text
#file.chmod(0755) #file.chmod(0755)
#file.close #file.close
a = Thread.start do a = Thread.start do
#Bundler.with_clean_env do Bundler.with_clean_env do
puts env_pwd puts env_pwd
puts mode puts mode
exec("cd #{env_pwd} && env -i HOME=\"$HOME\" bash -l -c \"#{all_command}\" && screen -d -m -S auto_reopen_#{dir_name} #{watch_dog_cmd} ") exec("cd #{env_pwd} && env -i HOME=\"$HOME\" bash -l -c \"#{all_command}\" && screen -d -m -S auto_reopen_#{dir_name} #{watch_dog_cmd} ")
#end end
end end
now_priority = Thread.current.priority.to_i now_priority = Thread.current.priority.to_i
system('sleep 2') system('sleep 2')