wedding-site-backend/README.md

59 lines
827 B
Markdown
Raw Normal View History

2024-02-10 10:34:12 +00:00
# wedding-site-backend
2024-02-11 15:26:29 +00:00
Web backend for hosting a wedding website.
2024-02-18 14:09:12 +00:00
# Run Local server:
2024-02-11 15:26:29 +00:00
```sh
source .venv/bin/activate
cd wedding_site
python manage.py runserver
```
2024-02-18 14:09:12 +00:00
# Do Migrations
2024-02-11 15:26:29 +00:00
```sh
cd wedding_site
python manage.py makemigrations primary
python manage.py migrate
2024-02-18 14:09:12 +00:00
```
# Run Dev Server in container
```sh
podman-compose -f compose.yaml up -d --build
```
Bring it down with:
```sh
podman-compose down -v
```
# Run Prod Server
```sh
podman-compose -f compose.prod.yaml up -d --build
```
Sync static files:
```sh
podman-compose -f compose.prod.yaml exec web python manage.py collectstatic --no-input --clear
```
2024-04-08 07:56:33 +00:00
Check cert
```sh
podman-compose -f compose.prod.yaml exec acme-companion /app/cert_status
```
Force renew cert:
```sh
podman-compose -f compose.prod.yaml exec acme-companion /app/force_renew
```
2024-02-18 14:09:12 +00:00