Skip to content

Commit

Permalink
fixed db connection
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Jun 20, 2024
1 parent 9ba49c0 commit 2745abf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion notification-server/.env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PGPASSWORD=$DB_PASSWORD
DB_CONNECTION="host=localhost dbname=kpi-tracker user=postgres password=$DB_PASSWORD port=5432"
NOTIFICATION_SERVER_DB_CONNECTION="host=localhost dbname=kpi-tracker user=postgres password=$DB_PASSWORD port=5432"
2 changes: 1 addition & 1 deletion notification-server/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct Args {
long = "db-connection",
help = "A connection string detailing the connection to the database used by the \
application.",
env = "DB_CONNECTION"
env = "NOTIFICATION_SERVER_DB_CONNECTION"
)]
db_connection: String, // Changed to String for axum, will parse later
/// Logging level of the application
Expand Down
2 changes: 1 addition & 1 deletion notification-server/src/bin/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct Args {
long = "db-connection",
help = "A connection string detailing the connection to the database used by the \
application.",
env = "DB_CONNECTION"
env = "NOTIFICATION_SERVER_DB_CONNECTION"
)]
db_connection: tokio_postgres::config::Config,
}
Expand Down

0 comments on commit 2745abf

Please sign in to comment.