From 095494f96f00b33dc9e956b094105c49b5bc558b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 18 Jan 2020 01:20:32 +0000 Subject: Improve Docker configurations --- app/tasks/importtasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/tasks/importtasks.py') diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index ed43584..ebe8e1e 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -389,7 +389,7 @@ def makeVCSRelease(id, branch): try: filename = randomString(10) + ".zip" - destPath = os.path.join("app/public/uploads", filename) + destPath = os.path.join(app.config["UPLOAD_DIR"], filename) with open(destPath, "wb") as fp: repo.archive(fp, format="zip") @@ -424,7 +424,7 @@ def importRepoScreenshot(id): sourcePath = gitDir + "/screenshot." + ext if os.path.isfile(sourcePath): filename = randomString(10) + "." + ext - destPath = os.path.join("app/public/uploads", filename) + destPath = os.path.join(app.config["UPLOAD_DIR"], filename) shutil.copyfile(sourcePath, destPath) ss = PackageScreenshot() -- cgit v1.2.3