Skip to content

Commit

Permalink
rename env
Browse files Browse the repository at this point in the history
  • Loading branch information
kitdim committed Feb 4, 2024
1 parent 1b1e205 commit c63d1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/hexlet/code/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static TemplateEngine createTemplateEngine() {

private static void setData(HikariConfig hikariConfig) {
log.info("****Database start connection****");
String jdbcUrl = System.getenv().getOrDefault("JDBC_URL_DEFAULT", JDBC_URL_DEFAULT);
String jdbcUrl = System.getenv().getOrDefault("JDBC_DATABASE_URL", JDBC_URL_DEFAULT);
hikariConfig.setJdbcUrl(jdbcUrl);
boolean isProd = System.getenv().getOrDefault("APP_ENV", "dev").equals("prod");

Expand Down

0 comments on commit c63d1bc

Please sign in to comment.