Skip to content

Commit

Permalink
Added port configuration to deploy on railway (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
LauroSilveira authored Dec 19, 2023
1 parent 22d5678 commit db779e8
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.alura.aluraflixapi.infraestructure.railway;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RailwayConfig {

@Bean
String getPort(){
return System.getenv("PORT");
}
}

0 comments on commit db779e8

Please sign in to comment.