fix(gp): weird issue with db username and password
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m41s

This commit is contained in:
2026-04-22 06:39:22 -05:00
parent a6d53f0266
commit d6328ab764
3 changed files with 6 additions and 7 deletions

View File

@@ -1,16 +1,14 @@
import type sql from "mssql";
const username = process.env.GP_USER ?? "gpviewer";
const password = process.env.GP_PASSWORD ?? "gp$$ViewOnly!";
const gpServer = process.env.GP_SERVER ?? "USMCD1VMS011";
const username = "gpviewer";
const password = "gp$$ViewOnly!";
const port = process.env.SQL_PORT
? Number.parseInt(process.env.SQL_PORT, 10)
: undefined;
export const gpSqlConfig: sql.config = {
server: gpServer,
server: `${process.env.GP_SERVER ?? "USMCD1VMS011"}`,
port: port,
database: `ALPLA`,
user: username,

View File

@@ -53,13 +53,14 @@ export const connectGPSql = async () => {
notify: false,
});
} catch (error) {
console.log(error);
reconnectToSql;
return returnFunc({
success: false,
level: "error",
module: "system",
subModule: "db",
message: "Failed to connect to the prod sql server.",
message: "Failed to connect to the gp sql server.",
data: [error],
notify: false,
});

View File

@@ -29,7 +29,7 @@ services:
- PROD_USER=${PROD_USER}
- PROD_PASSWORD=${PROD_PASSWORD}
- GP_SERVER=10.193.9.31
- SQL_PORT= 1433
- SQL_PORT=1433
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BETTER_AUTH_URL=${URL}
- OPENDOCK_URL=${OPENDOCK_URL}