Commit 11255619 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] Start UWSGI script (documentation)

parent 232fdcb1
#!/bin/bash
# Script to start uwsgi
# TODO do it as sudo or simple user ?
# Creat the log file at current time
FILE="/var/log/gargantext/uwsgi/$(date +%Y%m%d-%H:%M:%S).log"
touch ${FILE}
# Script to start uwsgi
uwsgi /srv/gargantext/gargantext.ini
# add a group here
chmod o+r ${FILE}
echo "To reload UWSGI: touch /tmp/gargantext.reload"
# finally start the server with that log file
uwsgi gargantext.ini --logto ${FILE}
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