18 lines
No EOL
363 B
Bash
Executable file
18 lines
No EOL
363 B
Bash
Executable file
#! /bin/bash
|
|
|
|
if [ -f conf/stack/ssl.key ]
|
|
then
|
|
echo "Using HTTPS"
|
|
/usr/local/nginx/sbin/nginx -c /conf/nginx-enterprise.conf
|
|
else
|
|
echo "No SSL key provided, using HTTP"
|
|
/usr/local/nginx/sbin/nginx -c /conf/nginx-enterprise-nossl.conf
|
|
fi
|
|
|
|
venv/bin/gunicorn -c conf/gunicorn_config.py application:application
|
|
|
|
while true
|
|
do
|
|
sleep 60
|
|
echo "Running"
|
|
done |