Skip to content

Commit 33d76f2

Browse files
fix: get port from toml
1 parent beac676 commit 33d76f2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/main/java/uz/server/ServerApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static Map<String, Object> loadToml(String path){
3232
map.put("github.client-id", toml.getString("github.client-id"));
3333
map.put("github.client-secret", toml.getString("github.client-secret"));
3434
map.put("github.redirect-uri", toml.getString("github.redirect-uri"));
35+
map.put("app.port", toml.getString("app.port"));
3536
return map;
3637
}
3738
}

server/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spring:
1818
format_sql: true
1919
show-sql: true
2020
server:
21-
port: 7140
21+
port: ${app.port}
2222
tomcat:
2323
max-http-form-post-size: 100MB
2424
max-swallow-size: 100MB

0 commit comments

Comments
 (0)