- 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.
5 lines
No EOL
337 B
Bash
Executable file
5 lines
No EOL
337 B
Bash
Executable file
#!/bin/bash
|
|
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 |