Skip to content

Commit 93b5ac2

Browse files
committed
configuration fix
1 parent a69827b commit 93b5ac2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

jdk_11_maven/em/embedded/rest/pay-publicapi/src/main/java/em/embedded/uk/gov/pay/api/app/EmbeddedEvoMasterController.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,12 @@ public String startSut() {
8585
application = new PublicApi();
8686

8787
//Dirty hack for DW...
88-
System.setProperty("dw.server.connector.port", "0");
89-
System.setProperty("REDIS_URL", "localhost:" + REDIS_PORT);
88+
System.setProperty("dw.server.applicationConnectors[0].port", "0");
89+
System.setProperty("dw.server.adminConnectors[0].port", "0");
90+
System.setProperty("dw.redis.endpoint", "localhost:" + REDIS_PORT);
9091

9192
try {
92-
application.run("server", "/src/main/resources/em_config.yaml");
93+
application.run("server", "src/main/resources/em_config.yaml");
9394
} catch (Exception e) {
9495
e.printStackTrace();
9596
return null;

0 commit comments

Comments
 (0)