diff --git a/justfile b/justfile index 715fc03..7b2e0d4 100644 --- a/justfile +++ b/justfile @@ -54,7 +54,7 @@ test: # 󰏖 Create pod [group("podman")] -create-pod: +_create-pod: podman pod exists {{ pod_name }} || \ podman pod create \ --name {{ pod_name }} \ @@ -68,7 +68,7 @@ build-server: #  Starts the PostgreSQL database inside the pod [group("podman")] -init-database: create-pod +_init-database: _create-pod podman run -d \ --pod {{ pod_name }} \ --name db \ @@ -79,7 +79,7 @@ init-database: create-pod #  Starts the server [group("podman")] -init-server: create-pod build-server +_init-server: _create-pod build-server podman run -d \ --pod {{ pod_name }} \ --name server \ @@ -91,12 +91,12 @@ init-server: create-pod build-server #  Starts the server and database [group("podman")] -up: init-database init-server +up: _init-database _init-server echo {{ GREEN }}"Listening on http://0.0.0.0:8000"{{ NORMAL }} #  Starts only the database [group("podman")] -db-up: init-database +db-up: _init-database echo {{ GREEN }}" PostgreSQL is ready on port 5432"{{ NORMAL }} #  Stop and remove the entire pod