Skip to content

Instantly share code, notes, and snippets.

@calimaborges
Last active July 16, 2016 02:24
Show Gist options
  • Select an option

  • Save calimaborges/d472ee5cb13bccd1f48b10f2fd97ead8 to your computer and use it in GitHub Desktop.

Select an option

Save calimaborges/d472ee5cb13bccd1f48b10f2fd97ead8 to your computer and use it in GitHub Desktop.

Revisions

  1. calimaborges revised this gist Jul 16, 2016. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions App.java
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,8 @@

    import static spark.Spark.*;

    public class App
    {
    public static void main( String[] args )
    {
    public class App {
    public static void main( String[] args ) {
    String strPort = System.getenv("PORT") != null ? System.getenv("PORT") : "4567";
    port(Integer.valueOf(strPort));
    get("/", (req, res) -> "Hello World");
  2. calimaborges created this gist Jul 15, 2016.
    13 changes: 13 additions & 0 deletions App.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    package carlosborges.taskify;

    import static spark.Spark.*;

    public class App
    {
    public static void main( String[] args )
    {
    String strPort = System.getenv("PORT") != null ? System.getenv("PORT") : "4567";
    port(Integer.valueOf(strPort));
    get("/", (req, res) -> "Hello World");
    }
    }
    1 change: 1 addition & 0 deletions Procfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    web: java -jar target/taskify-api.jar