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:
parent
7b1e42d341
commit
0d19f0f060
2 changed files with 5 additions and 7 deletions
4
.vscode/tasks.json
vendored
4
.vscode/tasks.json
vendored
|
|
@ -16,7 +16,7 @@
|
||||||
{
|
{
|
||||||
"label": "Run app & db (both in Docker)",
|
"label": "Run app & db (both in Docker)",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "docker compose -f docker-compose_entire_app.yml up -d",
|
"command": "docker compose -f docker-compose_entire_app.yml up",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
{
|
{
|
||||||
"label": "Run db",
|
"label": "Run db",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "docker compose -f docker-compose_db_only.yml up -d",
|
"command": "docker compose -f docker-compose_db_only.yml up",
|
||||||
"problemMatcher": []
|
"problemMatcher": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -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 down
|
||||||
docker compose -f docker-compose_db_only.yml up -d
|
docker compose -f docker-compose_db_only.yml up -d
|
||||||
|
|
||||||
uv run python manage.py runserver &
|
|
||||||
cd theme/static_src
|
cd theme/static_src
|
||||||
uv run npm run dev
|
uv run npm run dev &
|
||||||
|
cd ../../
|
||||||
docker compose -f docker-compose_db_only.yml down
|
uv run python manage.py runserver
|
||||||
echo "Done!"
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue