Last active
July 16, 2016 02:24
-
-
Save calimaborges/d472ee5cb13bccd1f48b10f2fd97ead8 to your computer and use it in GitHub Desktop.
workflow-back-end-java-part3-deploy-com-heroku
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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