Skip to content

Instantly share code, notes, and snippets.

@calimaborges
Last active July 16, 2016 02:24
Show Gist options
  • Save calimaborges/d472ee5cb13bccd1f48b10f2fd97ead8 to your computer and use it in GitHub Desktop.
Save calimaborges/d472ee5cb13bccd1f48b10f2fd97ead8 to your computer and use it in GitHub Desktop.
workflow-back-end-java-part3-deploy-com-heroku
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");
}
}
web: java -jar target/taskify-api.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment