aboutsummaryrefslogtreecommitdiffstats
path: root/extra/deployment/uwsgi_fatcat-web.sh
blob: 112d78570d678fbaaefff09181e95e272372108f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -eu

# sudo mkdir /var/run/fatcat-web
# sudo chown bnewbold:bnewbold /var/run/fatcat-web/

FATCAT_WEB_DIR=python
cd $FATCAT_WEB_DIR

uwsgi \
    -s /var/run/fatcat-web/uwsgi.sock \
    --manage-script-name --mount \
    --plugin python3 \
    --virtualenv .venv \
    --mount /:fatcat:app