Gute changes

This commit is contained in:
Some One 2025-08-19 22:06:27 +02:00
parent fbcfd08e59
commit 72e1328430
3 changed files with 10 additions and 6 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/mdn /mdn
/amo

View File

@ -21,11 +21,11 @@
git clone https://github.com/mdn/kuma.git --progress git clone https://github.com/mdn/kuma.git --progress
cd kuma cd kuma
git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress git switch dc45adde8b47269b8f088893fa14978b0c01a40a --detach --progress
sed -i 's#git://#https://#g' .gitmodules 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 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 cd ./vendor/src/python-magic
content="diff --git a/magic.py b/magic.py content="diff --git a/magic.py b/magic.py
@ -104,7 +104,9 @@ PROTOCOL = 'http://'
DOMAIN = 'localhost' DOMAIN = 'localhost'
PORT = 8000 PORT = 8000
SESSION_COOKIE_SECURE = False 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 echo "$content" > settings_local.py
cd .. cd ..
@ -136,7 +138,7 @@ SESSION_EXPIRE_AT_BROWSER_CLOSE = False"
dbServer="$!" dbServer="$!"
sleep 3 sleep 3
python ./manage.py runserver --noreload python ./manage.py runserver --noreload 0.0.0.0:8000
kill "$dbServer" kill "$dbServer"
sleep 6 sleep 6

View File

@ -17,13 +17,14 @@
cd amo cd amo
git clone https://github.com/mozilla/addons-server.git --progress git clone https://github.com/mozilla/addons-server.git --progress
git switch 8b4423547f932b2d9fa2b5a9c81d399bdc29bd6e --detach --progress
cd addons-server cd addons-server
git switch 8b4423547f932b2d9fa2b5a9c81d399bdc29bd6e --detach --progress
cd ../.. cd ../..
fi fi
cd amo cd amo
cd addons-server
python ./manage.py python ./manage.py
''; '';