Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
Hardcoded host
Browse files Browse the repository at this point in the history
  • Loading branch information
dethi committed Dec 9, 2017
1 parent 4fefcc5 commit 5baf404
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/com/epita/guereza/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static java.lang.System.exit;

public class Main {
private static final String NETTY_HOST = "localhost";
private static final int NETTY_PORT = 8000;

public static void main(String[] args) {
Expand Down Expand Up @@ -95,8 +96,10 @@ private static void runStore(Scope scope) {
}

private static void runApp(Scope scope) {
App app = scope.instanceOf(App.class);
app.run();
boolean ok = scope.instanceOf(EventBusClient.class).start(NETTY_HOST, NETTY_PORT);
if (ok) {
scope.instanceOf(App.class).run();
}
}

private static void runServer() {
Expand Down

0 comments on commit 5baf404

Please sign in to comment.