From 72e13284308e87846eb19b711a8e7d605bcc71c2 Mon Sep 17 00:00:00 2001 From: Some One Date: Tue, 19 Aug 2025 22:06:27 +0200 Subject: [PATCH] Gute changes --- .gitignore | 1 + runService1.nix | 12 +++++++----- runService2.nix | 3 ++- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 9e5410c..f558acc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /mdn +/amo diff --git a/runService1.nix b/runService1.nix index 5b4427a..6de0b5f 100644 --- a/runService1.nix +++ b/runService1.nix @@ -21,11 +21,11 @@ git clone https://github.com/mdn/kuma.git --progress cd kuma - git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress + git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress sed -i 's#git://#https://#g' .gitmodules - git submodule update --init --progress + git submodule update --init --progress sed -i 's#git://#https://#g' ./vendor/.gitmodules - git submodule update --init --recursive --progress + git submodule update --init --recursive --progress cd ./vendor/src/python-magic content="diff --git a/magic.py b/magic.py @@ -104,7 +104,9 @@ PROTOCOL = 'http://' DOMAIN = 'localhost' PORT = 8000 SESSION_COOKIE_SECURE = False -SESSION_EXPIRE_AT_BROWSER_CLOSE = False" +SESSION_EXPIRE_AT_BROWSER_CLOSE = False +ALLOWED_HOSTS = ['*'] +CSRF_COOKIE_SECURE = False" echo "$content" > settings_local.py cd .. @@ -136,7 +138,7 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = False" dbServer="$!" sleep 3 - python ./manage.py runserver --noreload + python ./manage.py runserver --noreload 0.0.0.0:8000 kill "$dbServer" sleep 6 diff --git a/runService2.nix b/runService2.nix index 04e6ced..753cfcc 100644 --- a/runService2.nix +++ b/runService2.nix @@ -17,13 +17,14 @@ cd amo git clone https://github.com/mozilla/addons-server.git --progress - git switch 8b4423547f932b2d9fa2b5a9c81d399bdc29bd6e --detach --progress cd addons-server + git switch 8b4423547f932b2d9fa2b5a9c81d399bdc29bd6e --detach --progress cd ../.. fi cd amo + cd addons-server python ./manage.py '';