reorg modules
This commit is contained in:
@@ -4,7 +4,6 @@ package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
||||
|
||||
local uuid = require "resty.jit-uuid"
|
||||
local cjson = require "cjson"
|
||||
local upyun_upload = require("upyun_upload")
|
||||
uuid.seed()
|
||||
|
||||
local file_dir = ngx.var.tmp_file_dir
|
||||
@@ -41,16 +40,3 @@ ngx.log(ngx.INFO, 'CMD -> ', cmd)
|
||||
io.popen(cmd)
|
||||
|
||||
ngx.say(combined_uuid)
|
||||
|
||||
-- local result, _, code = os.execute(cmd)
|
||||
--
|
||||
-- if result and code == 0 then
|
||||
-- ngx.log(ngx.INFO, "IMAGE COMBINED -> ", combined)
|
||||
--
|
||||
-- ngx.log(ngx.INFO, "Upload combined image " .. combined .. " to upyun .")
|
||||
--
|
||||
-- upyun_upload.upload(combined, nil)
|
||||
-- else
|
||||
-- ngx.status = 500
|
||||
-- ngx.log(ngx.ERR, "IMAGE COMBINE *FAILED*")
|
||||
-- end
|
||||
|
||||
Reference in New Issue
Block a user