import static spark.Spark.get;
import static javax.measure.unit.SI.KILOGRAM;
import javax.measure.quantity.Mass;
import org.jscience.physics.model.RelativisticModel;
import org.jscience.physics.amount.Amount;

/**
 * Created by DJMojo on 14/05/16.
 */
public class Main {

    public static void main(String[] args) {
        get("/hello", (req, res) -> {
            RelativisticModel.select();
            Amount<Mass> m = Amount.valueOf("12 GeV").to(KILOGRAM);
            return "E=mc^2: 12 GeV = " + m.toString();
        });
    }

}

@@ -70,16 +70,95 @@
 LOGRAM;%0A
+import static spark.Spark.port;%0Aimport static spark.Spark.staticFileLocation;%0A%0A
 import j
@@ -390,16 +390,111 @@
 args) %7B%0A
+%0A        port(Integer.valueOf(System.getenv(%22PORT%22)));%0A        staticFileLocation(%22/public%22);%0A%0A
         

add port and local file