package klabbristol.holidayservice;

import static spark.Spark.get;

public class Main {
    public static void main(String[] args) {
        get("/", (req, res) -> "hello");
    }
}

@@ -41,97 +41,252 @@
 ort 
-static spark.Spark.get;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B
+java.util.Optional;%0A%0Aimport static spark.Spark.get;%0Aimport static spark.Spark.port;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        port(Optional.ofNullable(System.getenv(%22PORT%22)).map(Integer::parseInt).orElse(4567));%0A
 %0A   

use port specified in environment variables