From 6a3686a71dd2e5bafbd2498bbd1401ee7f40f2d8 Mon Sep 17 00:00:00 2001 From: Krishnan Shankar Date: Tue, 30 Jan 2024 14:47:04 -0500 Subject: [PATCH] feat: add run.sh and deploy.sh scripts for Director --- deploy.sh | 8 ++++++++ run.sh | 3 +++ 2 files changed, 11 insertions(+) create mode 100755 deploy.sh create mode 100755 run.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..e15f355 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +cd /site/public +git pull +TMPDIR=/site/tmp pipenv sync +pipenv run ./manage.py migrate +pipenv run ./manage.py collectstatic --no-input +echo "Deploy complete. Restart the site process to wrap up." diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..a821564 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +pipenv run gunicorn -b $HOST:$PORT --workers 4 tjdests.wsgi