diff --git a/.gitignore b/.gitignore index 7f3fc79..40031a6 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,5 @@ build/ ### VS Code ### .vscode/ -logs/* \ No newline at end of file +logs/* +.env \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f9e2968..52f5b17 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,6 +1,8 @@ # Spring Profile: spring.profiles.active=prod +spring.config.import=optional:file:.env[.properties] + #Server port: server.port=${PORT:8080}