From dc54accd2290e0b8b0279c7b06e1619090fe5aa1 Mon Sep 17 00:00:00 2001 From: Imbus Date: Tue, 28 Nov 2023 03:03:56 +0100 Subject: [PATCH] Included install sqlx-cli in justfile --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 0b6f273..44f5aa8 100644 --- a/justfile +++ b/justfile @@ -36,12 +36,15 @@ start-release: start-postgres-dev clean-podman init-sqlx build-container-release podman run -d --network {{network}} -e {{env_string}} -p 8080:8080 --name frostbyte fb-server # Initializes the database, runs migrations and then prepares sqlx -init-sqlx: +init-sqlx: install-sqlx echo {{env_local}} > server/.env cd server && sqlx database create --connect-timeout 40 # Postgres takes a while to start up cd server && sqlx migrate run cd server && cargo sqlx prepare +install-sqlx: + cargo install sqlx-cli + # Starts a postgres container for development [private] start-postgres-dev: create-network