diff --git a/src/main/java/tk/draganczuk/url/App.java b/src/main/java/tk/draganczuk/url/App.java index 6cf03a4..456e1de 100644 --- a/src/main/java/tk/draganczuk/url/App.java +++ b/src/main/java/tk/draganczuk/url/App.java @@ -15,6 +15,8 @@ public class App { staticFiles.location("/public"); } + port(Integer.parseInt(System.getProperty("port", "4567"))); + get("/", (req, res) -> { res.redirect("/index.html"); return "Redirect";