feat: add run.sh and deploy.sh scripts for Director

This commit is contained in:
Krishnan Shankar 2024-01-30 14:47:04 -05:00
parent c39fdc7d67
commit 6a3686a71d
2 changed files with 11 additions and 0 deletions

8
deploy.sh Executable file
View File

@ -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."

3
run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
pipenv run gunicorn -b $HOST:$PORT --workers 4 tjdests.wsgi