Skip to content

Instantly share code, notes, and snippets.

@tkroman
Created August 21, 2014 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkroman/7a4b207edc7102387ee5 to your computer and use it in GitHub Desktop.
Save tkroman/7a4b207edc7102387ee5 to your computer and use it in GitHub Desktop.
private void bootstrapWebGUI(final String host, final Integer port) {
final Configurator cfg = new ServerConfigurator((GraphDatabaseAPI) db);
cfg.configuration().setProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY, port);
cfg.configuration().setProperty(Configurator.WEBSERVER_ADDRESS_PROPERTY_KEY, host);
webServer = new WrappingNeoServer((GraphDatabaseAPI) db, cfg);
webServer.start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment