Update announcement.gemspec
This commit is contained in:
parent
5cfae24800
commit
1e029699f1
|
@ -92,15 +92,15 @@ if old_gemfile_text != new_gemfile_text
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
all_command = "#{command1} ; cd #{env_pwd} ; #{command2} #{command3} #{command4} ; kill -s TERM `cat tmp/pids/unicorn.pid` ; unset UNICORN_FD ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now"
|
all_command = "#{command1} ; cd #{env_pwd} ; #{command2} #{command3} #{command4} ; kill -s TERM `cat tmp/pids/unicorn.pid` ; unset UNICORN_FD ; bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode}|at now"
|
||||||
file = File.new(File.join(env_pwd,'bundle_update_background.sh'),"w")
|
#file = File.new(File.join(env_pwd,'bundle_update_background.sh'),"w")
|
||||||
file.write(all_command)
|
#file.write(all_command)
|
||||||
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} && screen -d -m -S bundle_update_#{dir_name} #{env_pwd}/bundle_update_background.sh")
|
exec("cd #{env_pwd} && screen -d -m -S bundle_update_#{dir_name} bash -c \"#{all_command}\"")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
now_priority = Thread.current.priority.to_i
|
now_priority = Thread.current.priority.to_i
|
||||||
|
|
Loading…
Reference in New Issue