mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-29 02:31:00 +00:00
31187c99b2
Support gunicorn autoreload on DEBUG Pass docker postgres port to host Add some typing to posts.py
16 lines
424 B
Bash
16 lines
424 B
Bash
#!/bin/bash
|
|
|
|
# Set up cache size
|
|
CACHE_SIZE="${TAKAHE_NGINX_CACHE_SIZE:-1g}"
|
|
sed s/__CACHESIZE__/${CACHE_SIZE}/g /takahe/docker/nginx.conf > /takahe/docker/nginx.rendered.conf
|
|
|
|
# Run nginx and gunicorn
|
|
nginx -c "/takahe/docker/nginx.rendered.conf" &
|
|
|
|
gunicorn takahe.wsgi:application -b 0.0.0.0:8001 $GUNICORN_EXTRA_CMD_ARGS &
|
|
|
|
# Wait for any process to exit
|
|
wait -n
|
|
|
|
# Exit with status of process that exited first
|
|
exit $?
|