From c8e029888a99bbced40e379a0dbe767cc8449966 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 21 Oct 2024 21:08:28 -0400 Subject: [PATCH] debug mode --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 039e989..fea9890 100644 --- a/flake.nix +++ b/flake.nix @@ -194,13 +194,15 @@ if cfg.phx.database.passwordFile != null then '' export DB_PASSWORD=$(cat ${cfg.phx.database.passwordFile}) - export DATABASE_URL="postgresql://${cfg.phx.database.user}:$DB_PASSWORD@${cfg.phx.database.host}/${cfg.phx.database.name}" + export DATABASE_URL="ecto://${cfg.phx.database.user}:$DB_PASSWORD@${cfg.phx.database.host}/${cfg.phx.database.name}" '' else '' - export DATABASE_URL="postgresql://${cfg.phx.database.user}@${cfg.phx.database.host}/${cfg.phx.database.name}" + export DATABASE_URL="ecto://${cfg.phx.database.user}@${cfg.phx.database.host}/${cfg.phx.database.name}" '' } + echo $DATABASE_URL + # Run migrations ${cfg.phx.package}/bin/${release_name} eval "ZoeysComputer.Release.migrate"