Gute changes
This commit is contained in:
parent
fbcfd08e59
commit
72e1328430
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
/mdn
|
||||
/amo
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
'';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user