timetracker/entrypoint.sh

11 lines
293 B
Bash
Raw Normal View History

2023-01-03 13:29:39 +00:00
#!/bin/bash
2023-01-03 12:04:05 +00:00
# Apply database migrations
echo "Apply database migrations"
2023-01-05 20:56:57 +00:00
poetry run python src/web/manage.py migrate
2023-01-03 12:04:05 +00:00
2023-01-07 17:10:36 +00:00
echo "Collect static files"
poetry run python src/web/manage.py collectstatic
2023-01-03 12:04:05 +00:00
# Start server
echo "Starting server"
2023-01-05 20:56:57 +00:00
poetry run python src/web/manage.py runserver 0.0.0.0:8000