Skip to content

Commit 7dae21a

Browse files
committed
port
1 parent 130cd8a commit 7dae21a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/main/java/com/avaje/jdk/realworld/AvajeRealWorldApplication.java

Lines changed: 1 addition & 2 deletions
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
}
Lines changed: 0 additions & 2 deletions
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)