Skip to content

Commit 7dae21a

Browse files
committedMar 21, 2025·
port
1 parent 130cd8a commit 7dae21a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

Diff for: ‎src/main/java/com/avaje/jdk/realworld/AvajeRealWorldApplication.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public static void main(String[] args) {
3030
ctx.header("Access-Control-Allow-Origin", "*")
3131
.header("Access-Control-Allow-Headers", "*"))
3232
.plugin(staticContent)
33-
.port(Config.getInt("server.port"))
34-
.config(c -> c.host("localhost"))
33+
.port(Config.getInt("PORT", 8080))
3534
.start()
3635
.onShutdown(beans::close);
3736
}

Diff for: ‎src/main/resources/application.properties

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
server.port=8080
2-
31
datasource.db.username=${POSTGRES_USERNAME:postgres}
42
datasource.db.password=${POSTGRES_PASSWORD:postgres}
53
datasource.db.url=${POSTGRES_URL:jdbc:postgresql:postgres}

0 commit comments

Comments
 (0)
Please sign in to comment.