2023-08-15 15:41:12 +03:00
|
|
|
#!/usr/bin/env just --justfile
|
|
|
|
|
|
|
|
set shell := ["bash", "-c"]
|
|
|
|
|
2024-01-29 21:15:10 +03:00
|
|
|
dockercompose := `if docker-compose --version &> /dev/null; then echo "docker-compose"; else echo "docker compose"; fi`
|
|
|
|
|
2023-08-15 15:41:12 +03:00
|
|
|
@_default:
|
|
|
|
just --list --unsorted
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf frontend/node_modules
|
|
|
|
|
|
|
|
up:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} up
|
2023-08-15 15:41:12 +03:00
|
|
|
|
|
|
|
up-build:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} up --build
|
2023-08-15 15:41:12 +03:00
|
|
|
|
2023-12-06 09:47:54 +03:00
|
|
|
build:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} build
|
2023-12-06 09:47:54 +03:00
|
|
|
|
2023-08-15 15:41:12 +03:00
|
|
|
up-backend:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} up db tiles --detach
|
2023-08-15 15:41:12 +03:00
|
|
|
|
|
|
|
frontend *ARGS:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} up frontend {{ARGS}}
|
2023-08-26 16:52:43 +03:00
|
|
|
|
|
|
|
[no-exit-message]
|
|
|
|
frontend-sh:
|
2024-09-12 02:37:54 +03:00
|
|
|
{{dockercompose}} run --interactive --entrypoint sh frontend
|