From c21f4b3dacd597a15a5ec39d525df1dfe1b70376 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Mon, 17 Jul 2023 01:47:57 +0200 Subject: Add project. --- scripts/celery.sh | 5 +++++ scripts/entrypoint.sh | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/celery.sh create mode 100644 scripts/entrypoint.sh (limited to 'scripts') diff --git a/scripts/celery.sh b/scripts/celery.sh new file mode 100644 index 0000000..aea4be8 --- /dev/null +++ b/scripts/celery.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +celery -A restaurant_orders.celery worker --loglevel=info diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh new file mode 100644 index 0000000..b368fd4 --- /dev/null +++ b/scripts/entrypoint.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +python manage.py collectstatic --noinput +python manage.py makemigrations --noinput +python manage.py migrate --noinput + +daphne -b 0.0.0.0 -p 8000 restaurant_orders.asgi:application -- cgit v1.2.3