taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 589f1c9c51dfe09efadb96482948162e800ed166
parent b7f0dfec8a1fe7f9aa6e4a18947812c4a4524762
Author: Florian Dold <florian.dold@gmail.com>
Date:   Sun, 28 Feb 2016 22:28:55 +0100

add django script

Diffstat:
Adjango_wsgi.sh | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/django_wsgi.sh b/django_wsgi.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Launch uwsgi: i.e. connects django to nginx + +set -e +pids=$(pidof uwsgi || true) +if [[ ! -z "$pids" ]]; then + kill $pids || true + sleep 1 + kill -9 $pids || true +fi +echo "Killed previous instance" + +source $HOME/test_bank_login/bin/activate +cd $HOME/bank/TalerBank/ +nohup uwsgi --socket :8000 --module TalerBank.wsgi | tee $HOME/nohup.uwsgi.out & +disown