-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun-locally.html.md.erb
More file actions
26 lines (19 loc) · 1011 Bytes
/
run-locally.html.md.erb
File metadata and controls
26 lines (19 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: Run the App Locally
owner: Daniel Freitag
---
<strong><%= modified_date %></strong>
Once the application is compiled and built with all dependencies, you will be ready to run your app locally using the command
<pre class="terminal">
$ java -jar build/libs/cf-sample-app-java-1.0.0.jar
...
[Thread-0] INFO spark.webserver.SparkServer - == Spark has ignited ...
[Thread-0] INFO spark.webserver.SparkServer - >> Listening on 0.0.0.0:4567
[Thread-0] INFO org.eclipse.jetty.server.Server - jetty-9.0.z-SNAPSHOT
[Thread-0] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@2b338a85{HTTP/1.1}{0.0.0.0:4567}
</pre>
Open <a href="http://localhost:4567" target="_blank">http://localhost:4567</a> with your web browser. You should see your app running locally.
To stop the app from running locally, in the shell terminal, press `Ctrl+C` to exit.
<div style="text-align:center;margin:3em;">
<a href="./push-changes.html" class="btn btn-primary">I can run my App locally</a>
</div>