cic-staff-installer/systemd/bin/cic_cache_server_start.sh

6 lines
280 B
Bash
Raw Normal View History

2021-11-10 09:43:30 +01:00
#!/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'))"`
2021-11-11 08:29:03 +01:00
uwsgi --plugin python --wsgi-file $f --http $SERVER_HOST:$SERVER_PORT --pyargv "-c $HOME/.config/cic/cache $@"