takahe/docker/run.sh

17 wiersze
389 B
Bash
Czysty Zwykły widok Historia

#!/bin/bash
# Set up cache size
CACHE_SIZE="${TAKAHE_NGINX_CACHE_SIZE:-1g}"
2023-01-19 05:04:30 +00:00
sed s/__CACHESIZE__/${CACHE_SIZE}/g /etc/nginx/conf.d/default.conf.tpl > /etc/nginx/conf.d/default.conf
# Run nginx and gunicorn
2023-01-19 05:04:30 +00:00
nginx &
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 $?