fix the fixy
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m59s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m59s
This commit is contained in:
@ -23,18 +23,9 @@ public class Config {
|
||||
@Value("${public-url}")
|
||||
private String webPublicUrl;
|
||||
|
||||
/**
|
||||
* Whether the server is in production mode.
|
||||
*/
|
||||
private boolean production = false;
|
||||
|
||||
@PostConstruct
|
||||
public void onInitialize() {
|
||||
INSTANCE = this;
|
||||
|
||||
String environmentProperty = environment.getProperty("ENVIRONMENT", "development");
|
||||
production = environmentProperty.equalsIgnoreCase("production"); // Set the production mode
|
||||
log.info("Server is running in {} mode", production ? "production" : "development");
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
Reference in New Issue
Block a user