summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile.production5
-rw-r--r--startup-server.sh3
2 files changed, 2 insertions, 6 deletions
diff --git a/Dockerfile.production b/Dockerfile.production
index 1d5b0a1..604adae 100644
--- a/Dockerfile.production
+++ b/Dockerfile.production
@@ -18,7 +18,6 @@ RUN apt-get update \
18&& cp ./config/uwsgi.config /etc/uwsgi/apps-enabled/mat2-web.ini \ 18&& cp ./config/uwsgi.config /etc/uwsgi/apps-enabled/mat2-web.ini \
19&& rm /etc/nginx/sites-enabled/default \ 19&& rm /etc/nginx/sites-enabled/default \
20&& mkdir -p /etc/nginx/sites-enabled/ \ 20&& mkdir -p /etc/nginx/sites-enabled/ \
21&& cp ./config/nginx.config /etc/nginx/sites-enabled/mat2.conf \ 21&& cp ./config/nginx.config /etc/nginx/sites-enabled/mat2.conf
22&& chmod +x ./startup-server.sh
23 22
24CMD ["./startup-server.sh"] \ No newline at end of file 23CMD ["sh", "-c", "/etc/init.d/nginx restart; uwsgi --ini /etc/uwsgi/apps-enabled/mat2-web.ini"] \ No newline at end of file
diff --git a/startup-server.sh b/startup-server.sh
deleted file mode 100644
index d4449f7..0000000
--- a/startup-server.sh
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/bash
2/etc/init.d/nginx restart
3uwsgi --ini /etc/uwsgi/apps-enabled/mat2-web.ini \ No newline at end of file