android & benitlux: use NitObject in clients
[nit.git] / contrib / opportunity / src / opportunity_web.nit
index 0815b4f..dc0c2fe 100644 (file)
@@ -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"))