Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 6a8c1cc

Browse files
[DEVEDSB-98] Add custom error view and dotenv configuration
1 parent dea20e7 commit 6a8c1cc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/main/java/com/twilio/Webapp.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public class Webapp {
1919

2020
public static void main(String[] args) throws Exception {
2121
// Load the .env file into environment
22-
//dotenv();
2322
staticFileLocation("/public");
2423

2524
// Log all requests and responses
@@ -49,16 +48,4 @@ public static void main(String[] args) throws Exception {
4948
return token.toJwt();
5049
});
5150
}
52-
53-
private static void dotenv() throws Exception {
54-
final File env = new File(".env");
55-
if (!env.exists()) {
56-
return;
57-
}
58-
59-
final Properties props = new Properties();
60-
props.load(new FileInputStream(env));
61-
props.putAll(System.getenv());
62-
props.entrySet().forEach(p -> System.setProperty(p.getKey().toString(), p.getValue().toString()));
63-
}
6451
}

0 commit comments

Comments
 (0)