Skip to content

Commit

Permalink
Script for deployment on SRCF
Browse files Browse the repository at this point in the history
  • Loading branch information
jftsang committed Feb 18, 2024
1 parent 4efce37 commit 39c7730
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions deploy/srcf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
set -eux
files="$(dirname $0)"
bindto="unix:web.sock"

export SERVER_NAME=jmft2.user.srcf.net
export SCRIPT_NAME=/pypew

. /home/jmft2/venvs/py38/bin/activate

cd "$(dirname "$files")"
exec gunicorn wsgi:app \
-w 4 \
--bind "$bindto" \
--log-level debug

0 comments on commit 39c7730

Please sign in to comment.