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:
parent
0d19f0f060
commit
9c41f63247
14 changed files with 347 additions and 357 deletions
38
manage.py
38
manage.py
|
|
@ -1,40 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# /// script
|
||||
# requires-python = ">=3.13"
|
||||
# dependencies = [
|
||||
# "asgiref==3.8.1",
|
||||
# "certifi==2022.12.7",
|
||||
# "cffi==1.17.1",
|
||||
# "charset-normalizer==3.0.1",
|
||||
# "cookiecutter==2.6.0",
|
||||
# "crispy-tailwind==1.0.3",
|
||||
# "cryptography==39.0.1",
|
||||
# "defusedxml==0.7.1",
|
||||
# "django==5.1.2",
|
||||
# "django-allauth==65.0.2",
|
||||
# "django-browser-reload==1.17.0",
|
||||
# "django-crispy-forms==2.3",
|
||||
# "django-daisy==1.0.13",
|
||||
# "django-debug-toolbar==4.4.6",
|
||||
# "django-el-pagination==4.1.2",
|
||||
# "django-tailwind-4[reload]==0.1.4",
|
||||
# "gunicorn==23.0.0",
|
||||
# "idna==3.4",
|
||||
# "oauthlib==3.2.2",
|
||||
# "packaging==23.1",
|
||||
# "psycopg==3.2.3",
|
||||
# "psycopg-binary==3.2.3",
|
||||
# "pycparser==2.21",
|
||||
# "pyjwt==2.6.0",
|
||||
# "python3-openid==3.2.0",
|
||||
# "requests==2.28.2",
|
||||
# "requests-oauthlib==1.3.1",
|
||||
# "sqlparse==0.4.3",
|
||||
# "typing-extensions==4.9.0",
|
||||
# "urllib3==1.26.14",
|
||||
# "whitenoise==6.7.0",
|
||||
# ]
|
||||
# ///
|
||||
#!/usr/bin/env -S uv run
|
||||
"""Django's command-line utility for administrative tasks."""
|
||||
import os
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue