Complete refactor of environment configuration and Docker setup for development and production.

- Dev and prod both now run with the same exact docker configuration, except the .env file copied in.
- Removed the `.env` file and added a new `.env.dev` file for development settings, including database configuration and API keys.
- Introduced a `.envrc` file for automatic venv activation.
- Updated `deploy.sh` to utilize `uv` for running management commands and added a command for building Tailwind CSS.
- Created `docker-compose.yml` for local development with PostgreSQL, ensuring proper service dependencies.
- Deleted unnecessary files such as `docker-compose_db_only.yml` and `requirements.txt` to streamline the project structure.
This commit is contained in:
badblocks 2025-05-05 21:48:59 -07:00
parent 0d19f0f060
commit 9c41f63247
14 changed files with 347 additions and 357 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash
python manage.py migrate --noinput
python manage.py clear_cache
python manage.py collectstatic -c --no-input
uv run manage.py makemigrations --check && uv run manage.py migrate --noinput
uv run manage.py clear_cache
uv run manage.py collectstatic -c --no-input
NODE_ENV=production uv run node ./theme/static_src/node_modules/@tailwindcss/cli/dist/index.mjs -m -i ./theme/static_src/src/styles.css -o ./theme/static/css/dist/styles.css