Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ISRIC
wsm.rest
Commits
14efa137
Commit
14efa137
authored
Dec 06, 2017
by
Luís de Sousa
Browse files
Drafted startup.sh for docker image
parent
b6cdeaed
Changes
1
Hide whitespace changes
Inline
Side-by-side
configs/startup.sh
0 → 100644
View file @
14efa137
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment