mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
respond before
This commit is contained in:
parent
8fe7184d6c
commit
2dd98bc20f
@ -47,8 +47,8 @@ function NotfoundController:index(...)
|
|||||||
local path = WWW_ROOT..DIR_SEP.."scripts"..DIR_SEP..repository..".sh"
|
local path = WWW_ROOT..DIR_SEP.."scripts"..DIR_SEP..repository..".sh"
|
||||||
|
|
||||||
if ulib.exists(path) then
|
if ulib.exists(path) then
|
||||||
|
result("Build done, log file: https://ci.iohub.dev/log/"..repository.."_"..branch..".txt")
|
||||||
local cmd = "/bin/bash "..path.." "..branch
|
local cmd = "/bin/bash "..path.." "..branch
|
||||||
print(cmd)
|
|
||||||
local handle = io.popen(cmd)
|
local handle = io.popen(cmd)
|
||||||
local f = io.open(WWW_ROOT..DIR_SEP.."log"..DIR_SEP..repository.."_"..branch..".txt", "w")
|
local f = io.open(WWW_ROOT..DIR_SEP.."log"..DIR_SEP..repository.."_"..branch..".txt", "w")
|
||||||
for line in handle:lines() do
|
for line in handle:lines() do
|
||||||
@ -57,8 +57,6 @@ function NotfoundController:index(...)
|
|||||||
end
|
end
|
||||||
handle:close()
|
handle:close()
|
||||||
f:close()
|
f:close()
|
||||||
result("Build done, log file: https://ci.iohub.dev/log/"..repository.."_"..branch..".txt")
|
|
||||||
|
|
||||||
else
|
else
|
||||||
fail("No build script found")
|
fail("No build script found")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user