Fix more errors

This commit is contained in:
Lukáš Kucharczyk 2023-01-19 21:57:14 +01:00
parent 7d6b53cd1d
commit f71ebe7a08
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
4 changed files with 4 additions and 7 deletions

2
.gitignore vendored
View File

@ -5,4 +5,4 @@ __pycache__
node_modules
package-lock.json
db.sqlite3
src/timetracker/static
static

View File

@ -9,5 +9,4 @@ poetry run python src/timetracker/manage.py collectstatic --clear --no-input
echo "Starting server"
caddy start
cd src/timetracker || exit
poetry run python -m gunicorn --bind 0.0.0.0:8001 root.asgi:application -k uvicorn.workers.UvicornWorker --access-logfile - --error-logfile -
poetry run python -m gunicorn --bind 0.0.0.0:8001 timetracker.asgi:application -k uvicorn.workers.UvicornWorker --access-logfile - --error-logfile -

View File

@ -13,9 +13,7 @@ def version_date():
"%d-%b-%Y %H:%m",
time.gmtime(
os.path.getmtime(
os.path.abspath(
os.path.join(settings.BASE_DIR, "..", "..", "pyproject.toml")
)
os.path.abspath(os.path.join(settings.BASE_DIR, "pyproject.toml"))
)
),
)

View File

@ -14,7 +14,7 @@ import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve()
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production