This commit is contained in:
2021-11-30 00:33:11 +00:00
parent f72a13580c
commit e1378e8701

View File

@@ -45,6 +45,7 @@ catch (Exception ex)
//================== LAUNCH POSTGRES SERVER ================== //================== LAUNCH POSTGRES SERVER ==================
//https://notepad.onghu.com/2021/portable-postgresql-on-windows-without-installation/
ProcessStartInfo PGStartInfo = new ProcessStartInfo(); ProcessStartInfo PGStartInfo = new ProcessStartInfo();
PGStartInfo.EnvironmentVariables["PGDATA"] = Path.Combine(DataPath, "database"); PGStartInfo.EnvironmentVariables["PGDATA"] = Path.Combine(DataPath, "database");
PGStartInfo.EnvironmentVariables["PGDATABASE"] = "AyaNova"; PGStartInfo.EnvironmentVariables["PGDATABASE"] = "AyaNova";