aboutsummaryrefslogtreecommitdiffstats
path: root/extra/uwsgi_fatcat-web.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/uwsgi_fatcat-web.sh')
-rw-r--r--extra/uwsgi_fatcat-web.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/extra/uwsgi_fatcat-web.sh b/extra/uwsgi_fatcat-web.sh
new file mode 100644
index 00000000..112d7857
--- /dev/null
+++ b/extra/uwsgi_fatcat-web.sh
@@ -0,0 +1,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