X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=run.sh;fp=run.sh;h=5fe6132199fa9bdb3a0fc39c64cc5971fedf43dd;hb=50dac05d76e36020536ac7c75325f54d1caba3dd;hp=0000000000000000000000000000000000000000;hpb=07d3257fab88d61d28bee7202b8041576912900e;p=url-catcher diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..5fe6132 --- /dev/null +++ b/run.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# This script runs the url-catcher in a virtual environment with temporarily +# installed required external Python libraries. +set -e + +DIR_ENV=.temp_env + +pyvenv $DIR_ENV +source $DIR_ENV/bin/activate +pip install -r requirements.txt +echo +set +e +uwsgi --socket 127.0.0.1:3031 --wsgi-file url_catcher.py +set -e +deactivate +rm -rf $DIR_ENV