X-Git-Url: http://nitlanguage.org diff --git a/contrib/opportunity/src/opportunity_web.nit b/contrib/opportunity/src/opportunity_web.nit index 0815b4f..dc0c2fe 100644 --- a/contrib/opportunity/src/opportunity_web.nit +++ b/contrib/opportunity/src/opportunity_web.nit @@ -19,11 +19,12 @@ import opportunity_controller import opts import privileges -# Avoids a crash when running automatic tests -if "NIT_TESTING".environ == "true" then exit 0 - var iface = "localhost:8080" +if args.not_empty then + iface = args.first +end + var vh = new VirtualHost(iface) vh.routes.add new Route("/rest/", new OpportunityRESTAction) vh.routes.add new Route("/static/", new FileServer("art"))