diff --git a/.gitignore b/.gitignore index 811e593..8b6419f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ nonpacks/static/vanilla/entity_index.json *.log AGENTS/ logs/ +non_packs.service \ No newline at end of file diff --git a/non_packs.service b/non_packs.service deleted file mode 100644 index 585c866..0000000 --- a/non_packs.service +++ /dev/null @@ -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 diff --git a/run_dev.sh b/run_dev.sh index a061c57..8ba3df8 100755 --- a/run_dev.sh +++ b/run_dev.sh @@ -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 diff --git a/run_prod.sh b/run_prod.sh index 7b58372..c7d25af 100755 --- a/run_prod.sh +++ b/run_prod.sh @@ -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