Skip to content

Commit b66f82c

Browse files
authored
Update hello.ftl
1 parent aec949a commit b66f82c

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

  • src/main/resources/spark/template/freemarker
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,69 @@
11

2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<#include "header.ftl">
6+
</head>
7+
8+
<body>
9+
10+
<#include "nav.ftl">
11+
12+
<div class="jumbotron text-center">
13+
<div class="container">
14+
<a href="/" class="lang-logo">
15+
<img src="/lang-logo.png">
16+
</a>
17+
<h1>Getting Started with Java on Heroku</h1>
18+
<p>This is a sample Java application deployed to Heroku. It's a reasonably simple app - but a good foundation for understanding how to get the most out of the Heroku platform.</p>
19+
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-java"><span class="glyphicon glyphicon-flash"></span> Getting Started with Java</a>
20+
<a type="button" class="btn btn-lg btn-primary" href="https://github.com/heroku/java-getting-started"><span class="glyphicon glyphicon-download"></span> Source on GitHub</a>
21+
</div>
22+
</div>
23+
24+
<div class="container">
25+
<div class="alert alert-info text-center" role="alert">
26+
To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to the <a href="https://devcenter.heroku.com/articles/getting-started-with-java" class="alert-link">Getting Started with Java on Heroku</a> tutorial.
27+
</div>
28+
<hr>
29+
<div class="row">
30+
<div class="col-md-6">
31+
<h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app works</h3>
32+
<ul>
33+
<li>This app was deployed to Heroku, either using Git or by using <a href="https://github.com/heroku/java-getting-started">Heroku Button</a> on the repository.</li>
34+
35+
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/java-getting-started/blob/master/pom.xml">pom.xml</a>, creating a slug.</li>
36+
<li>The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the slug can be mounted and executed.</li>
37+
<li>You can scale your app, manage it, and deploy over <a href="https://addons.heroku.com/">150 add-on services</a>, from the Dashboard or CLI.</li>
38+
</ul>
39+
</div>
40+
<div class="col-md-6">
41+
<h3><span class="glyphicon glyphicon-link"></span> Next Steps</h3>
42+
<ul>
43+
<li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-java">Getting Started</a> guide, then please head back to the tutorial and follow the next steps!</li>
44+
<li>If you deployed this app by deploying the Heroku Button, then in a command line shell, run:</li>
45+
<ul>
46+
<li><code>git clone https://github.com/heroku/java-getting-started.git</code> - this will create a local copy of the source code for the app</li>
47+
<li><code>cd java-getting-started</code> - change directory into the local source code repository</li>
48+
<li><code>heroku git:remote -a &lt;your-app-name></code> - associate the Heroku app with the repository</li>
49+
<li>You'll now be set up to run the app locally, or <a href="https://devcenter.heroku.com/articles/getting-started-with-java#push-local-changes">deploy changes</a> to Heroku</li>
50+
</ul>
51+
</ul>
52+
<h3><span class="glyphicon glyphicon-link"></span> Helpful Links</h3>
53+
<ul>
54+
<li><a href="https://www.heroku.com/home">Heroku</a></li>
55+
<li><a href="https://devcenter.heroku.com/">Heroku Dev Center</a></li>
56+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java">Getting Started with Java on Heroku</a></li>
57+
<li><a href="https://devcenter.heroku.com/articles/deploying-java">Deploying Java Apps on Heroku</a></li>
58+
</ul>
59+
</div>
60+
</div> <!-- row -->
61+
<div class="alert alert-info text-center" role="alert">
62+
Please do work through the Getting Started guide, even if you do know how to build such an application. The guide covers the basics of working with Heroku, and will familiarize you with all the concepts you need in order to build and deploy your own apps.
63+
</div>
64+
65+
</div>
66+
67+
68+
</body>
69+
</html>

0 commit comments

Comments
 (0)