Update Docker commands in tasks.json and entrypoint.sh for improved service management

- Modified Docker commands in `.vscode/tasks.json` to remove the `-d` flag for running services, allowing for better visibility of logs during development.
- Adjusted `entrypoint.sh` to streamline the startup process by running the development server and npm concurrently, enhancing the development workflow.
This commit is contained in:
badblocks 2025-04-29 14:01:46 -07:00
parent 7b1e42d341
commit 0d19f0f060
2 changed files with 5 additions and 7 deletions

4
.vscode/tasks.json vendored
View file

@ -16,7 +16,7 @@
{
"label": "Run app & db (both in Docker)",
"type": "shell",
"command": "docker compose -f docker-compose_entire_app.yml up -d",
"command": "docker compose -f docker-compose_entire_app.yml up",
"problemMatcher": []
},
{
@ -28,7 +28,7 @@
{
"label": "Run db",
"type": "shell",
"command": "docker compose -f docker-compose_db_only.yml up -d",
"command": "docker compose -f docker-compose_db_only.yml up",
"problemMatcher": []
}
]

View file

@ -17,9 +17,7 @@ echo "Restarting compose services..."
docker compose -f docker-compose_db_only.yml down
docker compose -f docker-compose_db_only.yml up -d
uv run python manage.py runserver &
cd theme/static_src
uv run npm run dev
docker compose -f docker-compose_db_only.yml down
echo "Done!"
uv run npm run dev &
cd ../../
uv run python manage.py runserver