From 057048cbec9ea3927387d80c2ec32a80efc7818e Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 31 Dec 2021 11:35:46 +0100 Subject: [PATCH 1/2] Removed ci thingy --- .woodpecker.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 176c77d..8c89b6c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -6,5 +6,4 @@ pipeline: repo: chewingbever/pieter tag: ${CI_COMMIT_TAG} when: - branch: main event: tag From 608e888fe774fa6b6d4b98aefbb55a5106b56da6 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Fri, 31 Dec 2021 14:04:17 +0100 Subject: [PATCH 2/2] Fixed routing issue --- app.py | 4 ++-- nginx.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 60c40f9..399771e 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,7 @@ from pathlib import Path from werkzeug.utils import secure_filename import subprocess -UPLOAD_FOLDER = Path(os.environ['REPO_DIR']) / "pkgs" +UPLOAD_FOLDER = Path(os.environ['REPO_DIR']) API_KEY = os.environ['API_KEY'] ALLOWED_EXTENSIONS = {'pkg.tar.zst', 'pkg.tar.gz'} @@ -57,7 +57,7 @@ def upload_file(): file.save(path) # Run repo-add on the file - res = subprocess.run(["repo-add", path.parent.parent / "pieter.db.tar.gz", path]) + res = subprocess.run(["repo-add", path.parent / "pieter.db.tar.gz", path]) if res.returncode != 0: path.unlink() diff --git a/nginx.conf b/nginx.conf index 43be09f..d970866 100644 --- a/nginx.conf +++ b/nginx.conf @@ -36,7 +36,7 @@ http { } location / { - root /data; + root /data; } } }