Skip to content

Commit

Permalink
Fixes to get it running
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed May 23, 2024
1 parent e486e7e commit db373c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as dotenv from "dotenv";

export const NODE_ENV = process.env.NODE_ENV;
export const NODE_ENV = process.env.NODE_ENV || "development";

let path;
switch (process.env.NODE_ENV) {
Expand All @@ -13,7 +13,7 @@ switch (process.env.NODE_ENV) {
default:
path = `.env.development`;
}
dotenv.config({ path: path });
dotenv.config({ path: path, override: true });

console.log(`LOADING ${NODE_ENV} CONFIG FROM ${path}`);

Expand Down
2 changes: 1 addition & 1 deletion api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ app.use((req: Request, res: Response) => {
const PORT: number = parseInt(API_PORT as string);

app.listen(PORT, async () => {
console.log(`PMAP SRVT API listenting on port ${PORT}`);
console.log(`Safety API listenting on port ${PORT}`);
});
1 change: 1 addition & 0 deletions db/secrets/postgres-password
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
password
1 change: 1 addition & 0 deletions db/secrets/postgres-user
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
postgres
4 changes: 2 additions & 2 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ services:
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: michael@icefoganalytics.com
PGADMIN_DEFAULT_PASSWORD: sugaray99
PGADMIN_DEFAULT_EMAIL: info@icefoganalytics.com
PGADMIN_DEFAULT_PASSWORD: testing1122
ports:
- "8111:80"
volumes:
Expand Down

0 comments on commit db373c3

Please sign in to comment.