#Pour installer le back #Il faut installer python2.7 #pip install -r requirement.txt #git clone https://github.com/guysolando/rancid_back #installer nginx
#creer un virtualenv #virtualenv .venv (par exemple)
#Avec runit creer un service rancidgui #lancer uwsgi en tant que rancid grace à ce script en modifiant apres --ini par le chemin du fichier .ini #!/bin/sh #exec sudo -u rancid /usr/local/bin/uwsgi --ini /opt/wui/var/conf/uwsgi/rancid.ini 2>&1
####Conf uwsgi: #[uwsgi] #socket = 127.0.0.1:5000 #master = true #processes = 1 #enable-threads = true #buffer-size = 8192 #need-app = true #listen = 100 #log-syslog = uwsgi.wui #chdir = /opt/wui/var/www/api #virtualenv = /opt/wui/var/www/api/.venv #module = python2.7 #file = run.py #callable = app #uid = rancid
#conf nginx: #server {