Skip python plugin directive for uwsgi (doesn't work in ubuntu), explicit python3

This commit is contained in:
nolash 2021-12-06 10:09:38 +01:00
parent be12809aeb
commit 8209f7b090
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -1,5 +1,5 @@
#!/bin/bash
t=`mktemp`
f=`python -c "import cic_cache; import os; s = os.path.dirname(cic_cache.__file__); print(os.path.join(s, 'runnable', 'daemons', 'server.py'))"`
uwsgi --plugin python --wsgi-file $f --http $SERVER_HOST:$SERVER_PORT --pyargv "-c $HOME/.config/cic/cache $@"
f=`python3 -c "import cic_cache; import os; s = os.path.dirname(cic_cache.__file__); print(os.path.join(s, 'runnable', 'daemons', 'server.py'))"`
uwsgi --master --enable-threads --wsgi-file $f --http $SERVER_HOST:$SERVER_PORT --pyargv "-c $HOME/.config/cic/cache $@"