Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 949 Bytes

notes.md

File metadata and controls

22 lines (15 loc) · 949 Bytes

notes

you'll need to install python 3.11 and pipenv before continuing.

note that for a production deployment, you'll need to install pipenv globally as opposed to just for the current user which is recommended in pipenv docs: sudo pip install pipenv

first, install deps and create virtualenv: pipenv install

obtain the config.ini from Jason or Mason for Square, place at root of project

run server: pipenv run python manage.py runserver run migrations: pipenv run python manage.py migrate create migrations: pipenv run python manage.py makemigrations run static: pipenv run python manage.py collectstatic create superuser: pipenv run python manage.py createsuperuser

to [re-]deploy: ./deploy/run.sh (does not include pulling from git)

viewing logs

  • journalctl -e -u gunicorn.service
  • journalctl -e -u gunicorn.socket
  • journalctl -e -u discord_bot.service