From a771651f8d41cdcaab4ae8a182aa31b4babcfbf7 Mon Sep 17 00:00:00 2001 From: ngutech21 Date: Sun, 14 Jan 2024 08:24:44 +0100 Subject: [PATCH] chore: extract db-url --- justfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index cbbde988..1451eb0e 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,6 @@ export CFLAGS := "" +DB_URL := "postgres://postgres:postgres@localhost/moksha-mint" # list all tasks default: @@ -123,12 +124,12 @@ build-wasm: # runs sqlx prepare db-prepare: cd moksha-mint && \ - cargo sqlx prepare --database-url postgres://postgres:postgres@127.0.0.1/moksha-mint + cargo sqlx prepare --database-url {{ DB_URL }} # creates the postgres database db-create: cd moksha-mint && \ - cargo sqlx database create --database-url postgres://postgres:postgres@localhost/moksha-mint + cargo sqlx database create --database-url {{ DB_URL }} # starts the fly.io database proxy start-fly-proxy: