Commit 14efa137 authored by Luís de Sousa's avatar Luís de Sousa
Browse files

Drafted startup.sh for docker image

parent b6cdeaed
#!/bin/bash
# Create socket for Gunicorn
touch /var/www/wsm.rest/wsm.rest.sock
chown www-data:www-data /var/www/wsm.rest/wsm.rest.sock
# Launch Gunicorn
exec /usr/local/bin/gunicorn wsgi:app \
--workers 3 \
--bind unix:wsm.rest.sock \
-m 007
# Remove default site from nginx
rm /etc/nginx/sites-enabled/default
# Launch neginx
exec nginx
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment