diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-10-06 15:36:41 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-10-06 15:36:41 +0300 |
| commit | 25f62c996b560df12c2a8f1c7506aba28c02b154 (patch) | |
| tree | 43b9f991aab015a3d6affcb47d55ef270ec5d20f /templates/diddle/usr_local_bin_diddle | |
| parent | 29eb2e6cc469d9534c2586e98b782f1879bd8c76 (diff) | |
Run diddle
Diffstat (limited to 'templates/diddle/usr_local_bin_diddle')
| -rw-r--r-- | templates/diddle/usr_local_bin_diddle | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/diddle/usr_local_bin_diddle b/templates/diddle/usr_local_bin_diddle new file mode 100644 index 0000000..d07cd5e --- /dev/null +++ b/templates/diddle/usr_local_bin_diddle @@ -0,0 +1,17 @@ +#!/bin/sh + +set -eux + +PATH=$PATH:/usr/local/bin + +cd /root/diddle + +if [ ! -f venv ]; then + python3.11 -m venv venv +fi + +PATH=$PATH:/root/diddle/venv/bin + +pip install -r requirements.txt +python apply_migrations.py +gunicorn --bind "0.0.0.0:80" -w 4 app:app |
