diff --git a/docker/.gitignore b/docker/.gitignore new file mode 100644 index 0000000..f493233 --- /dev/null +++ b/docker/.gitignore @@ -0,0 +1 @@ +nginx.rendered.conf diff --git a/docker/run.sh b/docker/run.sh index 083b166..b8f0e69 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -2,10 +2,10 @@ # Set up cache size CACHE_SIZE="${TAKAHE_NGINX_CACHE_SIZE:-1g}" -sed -i s/__CACHESIZE__/${CACHE_SIZE}/g /takahe/docker/nginx.conf +sed s/__CACHESIZE__/${CACHE_SIZE}/g /takahe/docker/nginx.conf > /takahe/docker/nginx.rendered.conf # Run nginx and gunicorn -nginx -c "/takahe/docker/nginx.conf" & +nginx -c "/takahe/docker/nginx.rendered.conf" & gunicorn takahe.wsgi:application -b 0.0.0.0:8001 &