config파일을 추가로 배포

This commit is contained in:
2023-06-12 12:28:33 +09:00
parent 471d07a188
commit b14ad791df
3 changed files with 13 additions and 6 deletions

View File

@ -90,7 +90,7 @@ func (h *houstonHandler) UploadDeploySource(w http.ResponseWriter, r *http.Reque
var filename string
if version == "config" {
filename = path.Join("deploys", name, version, "config"+ext)
filename = path.Join("deploys", name, version, "config.json")
} else {
// deploys 폴더는 파일시스템 서비스이므로 다운로드 가능
filename = path.Join("deploys", name, version, name+ext)
@ -189,6 +189,7 @@ func (h *houstonHandler) Deploy(w http.ResponseWriter, r *http.Request) {
Name: name,
Version: version,
Url: path.Join(relPath, latestFilename),
Config: path.Join("deploys", name, "config", "config.json"),
},
targets,
))