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"