5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 13:31:42 +00:00

fix: deprecar Dir#chdir #13619
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-06-15 18:28:34 -03:00
parent 4064d41855
commit d17db5428a

View file

@ -65,8 +65,7 @@ class Deploy < ApplicationRecord
lines = []
time_start
Dir.chdir(site.path) do
Open3.popen2e(env, cmd, unsetenv_others: true) do |_, o, t|
Open3.popen2e(env, cmd, unsetenv_others: true, chdir: site.path) do |_, o, t|
# TODO: Enviar a un websocket para ver el proceso en vivo?
Thread.new do
o.each do |line|
@ -81,7 +80,6 @@ class Deploy < ApplicationRecord
r = t.value
end
end
time_stop
build_stats.create action: readable_cmd(cmd),