diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:47:57 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-17 01:52:26 +0200 |
commit | c21f4b3dacd597a15a5ec39d525df1dfe1b70376 (patch) | |
tree | 0dfc51d2ffeb7b5022d9ad852f2fd3620c72196a /scripts | |
parent | 2c6f98aeef4fa1aba5678fe17c8e762a11db7b40 (diff) | |
download | restaurant-orders-main.tar.gz restaurant-orders-main.zip |
Add project.main
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/celery.sh | 5 | ||||
-rw-r--r-- | scripts/entrypoint.sh | 9 |
2 files changed, 14 insertions, 0 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e | ||
4 | |||
5 | 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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -e | ||
4 | |||
5 | python manage.py collectstatic --noinput | ||
6 | python manage.py makemigrations --noinput | ||
7 | python manage.py migrate --noinput | ||
8 | |||
9 | daphne -b 0.0.0.0 -p 8000 restaurant_orders.asgi:application | ||