final push
This commit is contained in:
@@ -9,3 +9,4 @@ nonpacks/static/vanilla/entity_index.json
|
||||
*.log
|
||||
AGENTS/
|
||||
logs/
|
||||
non_packs.service
|
||||
@@ -1,17 +0,0 @@
|
||||
[Unit]
|
||||
Description=Packs Site Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=jake
|
||||
Group=jake
|
||||
WorkingDirectory=/mnt/Disco/Proyects/Python3.13/Packs site
|
||||
ExecStart=/mnt/Disco/Proyects/Python3.13/Packs site/run_prod.sh
|
||||
Restart=on-failure
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=packs-site
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+2
-2
@@ -32,5 +32,5 @@ fi
|
||||
echo "Rebuilding vanilla entity-texture index..."
|
||||
"$PYTHON_BIN" manage.py refresh_vanilla_index
|
||||
|
||||
echo "Starting Django development server on 0.0.0.0:8000..."
|
||||
exec "$PYTHON_BIN" manage.py runserver 0.0.0.0:8000
|
||||
echo "Starting Django development server on 0.0.0.0:8120..."
|
||||
exec "$PYTHON_BIN" manage.py runserver 0.0.0.0:8120
|
||||
|
||||
+2
-2
@@ -39,10 +39,10 @@ echo "Rebuilding vanilla entity-texture index..."
|
||||
# Directory for gunicorn's access log (parsed by the stats page).
|
||||
mkdir -p "$SCRIPT_DIR/logs"
|
||||
|
||||
echo "Starting Gunicorn on 0.0.0.0:8000..."
|
||||
echo "Starting Gunicorn on 0.0.0.0:8120..."
|
||||
exec "$GUNICORN_BIN" \
|
||||
--workers 3 \
|
||||
--bind 0.0.0.0:8000 \
|
||||
--bind 0.0.0.0:8120 \
|
||||
--access-logfile "$SCRIPT_DIR/logs/gunicorn-access.log" \
|
||||
--access-logformat '%(h)s %(t)s "%(r)s" %(s)s %(b)s %(L)s' \
|
||||
common.wsgi:application
|
||||
|
||||
Reference in New Issue
Block a user