-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
24 lines (19 loc) · 838 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# For timings use the following:
# | ts -s '[%Y-%m-%d %H:%M:%.S]'
#
docker:
docker build -t orthocal .
run:
docker run -it -e PORT=8000 -e ALLOWED_HOSTS='localhost' -e WEB_CONCURRENCY=4 -p8000:8000 orthocal
uvicorn:
# newrelic-admin run-program uvicorn --lifespan off --host 0.0.0.0 --port 8000 orthocal.asgi:application
newrelic-admin run-program uvicorn --lifespan off --host 0.0.0.0 --port 8000 --workers 4 orthocal.asgi:application
# newrelic-admin run-program uvicorn --workers 2 --lifespan off --host 0.0.0.0 --port 8000 orthocal.asgi:application
deploy:
docker tag orthocal:latest gcr.io/orthocal-1d1b9/orthocal:latest
docker push gcr.io/orthocal-1d1b9/orthocal:latest
test:
docker run -it -e PORT=8000 -p8000:8000 orthocal ./manage.py test
firebase:
firebase use --add orthocal-1d1b9
firebase deploy --only hosting