From 5c24101d599ceb1c3dbcb261e2a1f5d4ffec3f66 Mon Sep 17 00:00:00 2001 From: Lauro Correia Silveira Date: Tue, 19 Dec 2023 13:13:44 +0100 Subject: [PATCH] Remove Railway configuration Bean (#83) --- .../infraestructure/railway/RailwayConfig.java | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java diff --git a/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java b/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java deleted file mode 100644 index 80cab96..0000000 --- a/src/main/java/com/alura/aluraflixapi/infraestructure/railway/RailwayConfig.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.alura.aluraflixapi.infraestructure.railway; - -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@Configuration -public class RailwayConfig { - - @Value("server.port") - private String port; - @Bean - String getPort(){ - return this.port = System.getenv("PORT"); - } -}