mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 23:30:59 +00:00
a26263fb05
Also serves static files. Old media caching removed.
15 lines
355 B
Bash
15 lines
355 B
Bash
#!/bin/bash
|
|
|
|
# Set up cache size
|
|
CACHE_SIZE="${TAKAHE_NGINX_CACHE_SIZE:-1g}"
|
|
sed -i s/__CACHESIZE__/${CACHE_SIZE}/g /takahe/docker/nginx.conf
|
|
|
|
# Run nginx and gunicorn
|
|
nginx -c "/takahe/docker/nginx.conf" &
|
|
gunicorn takahe.wsgi:application -b 0.0.0.0:8001 &
|
|
|
|
# Wait for any process to exit
|
|
wait -n
|
|
|
|
# Exit with status of process that exited first
|
|
exit $?
|