package is.ru.tictactoe;

import spark.*;
import static spark.Spark.*;
import spark.servlet.SparkApplication;

public class TicWeb implements SparkApplication {
  public static void main(String[] args) {
    get("/", (req, res) -> {
      return "Hello World!";
    });
  }

  @Override
  public void init() {
    //
  }
}
@@ -193,24 +193,52 @@
 g%5B%5D args) %7B%0A
+    port(getHerokuPort());%0A%0A
     get(%22/%22,
@@ -296,16 +296,233 @@
 );%0A  %7D%0A%0A
+  static int getHerokuPort() %7B%0A    ProcessBuilder psb = new ProcessBuilder();%0A    if (psb.environment().get(%22PORT%22) != null) %7B%0A      return Integer.parseInt(psb.environment().get(%22PORT%22));%0A    %7D%0A    return 4567;%0A  %7D%0A%0A
   @Overr

fix heroku