Skip to content

Instantly share code, notes, and snippets.

View nscavell's full-sized avatar

Nick Scavelli nscavell

  • Vndly
  • Cincinnati, Ohio
View GitHub Profile
@nscavell
nscavell / Server.java
Last active August 29, 2015 13:58
OpenShift Server.java Example
import org.vertx.java.core.Handler;
import org.vertx.java.core.http.HttpServerRequest;
import org.vertx.java.platform.Verticle;
public class Server extends Verticle {
@Override
public void start() {
String ip = container.env().get("OPENSHIFT_VERTX_IP");
if (ip == null) {
ip = "127.0.0.1";