|
9 | 9 | <img src="/static/lang-logo.png">
|
10 | 10 | </a>
|
11 | 11 | <h1>Getting Started with Go on Heroku</h1>
|
12 |
| - <p>This is a sample Go 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> |
13 |
| - <a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-go"><span class="glyphiconglyphicon-flash"></span> Getting Started with Go</a> |
14 |
| - <a type="button" class="btn btn-lg btn-primary" href="https://github.com/heroku/go-getting-started"><span class="glyphiconglyphicon-download"></span> Source on GitHub</a> |
| 12 | + <p>This is a sample Go 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> |
| 13 | + <a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-go"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku with Go</a> |
| 14 | + <a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-go-fir"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku Fir with Go</a> |
| 15 | + <a type="button" class="btn btn-lg btn-primary" href="https://github.com/heroku/go-getting-started"><span class="glyphicon glyphicon-download"></span> Source on GitHub</a> |
15 | 16 | </div>
|
16 | 17 | </div>
|
17 | 18 | <div class="container">
|
18 |
| - <div class="alert alert-info text-center" role="alert"> |
19 |
| - 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-go" class="alert-link">Getting Started with Go on Heroku</a> tutorial. |
| 19 | + <div class="lead"> |
| 20 | + To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to either of the following tutorials: |
| 21 | + <ul> |
| 22 | + <li><a href="https://devcenter.heroku.com/articles/getting-started-with-go" class="alert-link">Getting Started on Heroku with Go</a></li> |
| 23 | + <li><a href="https://devcenter.heroku.com/articles/getting-started-with-go-fir" class="alert-link">Getting Started on Heroku Fir with Go</a></li> |
| 24 | + </ul> |
20 | 25 | </div>
|
21 |
| - <hr> |
| 26 | + <hr /> |
22 | 27 | <div class="row">
|
23 | 28 | <div class="col-md-6">
|
24 | 29 | <h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app works</h3>
|
25 | 30 | <ul>
|
26 |
| - <li>This app was deployed to Heroku, either using Git or by using <a href="https://github.com/heroku/go-getting-started">Heroku Button</a> on the repository.</li> |
27 |
| - |
28 |
| - <li>When Heroku received the source code it used the go tool chain to compile the application along with any vendored dependencies and created a deployable slug.</li> |
29 |
| - <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> |
30 |
| - <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> |
| 31 | + <li>This app was deployed to Heroku using Git.</li> |
| 32 | + <li>When Heroku received the source code it used the go tool chain to compile the application along with any vendored <a href="https://devcenter.heroku.com/articles/go-support#supported-dependency-vendor-managers">dependencies</a>, creating a deployable build artifact.</li> |
| 33 | + <li>The platform then spins up a dyno, a lightweight container that provides an isolated environment in which the build artifact can be mounted and executed.</li> |
| 34 | + <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> |
31 | 35 | </ul>
|
32 | 36 | </div>
|
33 | 37 | <div class="col-md-6">
|
34 | 38 | <h3><span class="glyphicon glyphicon-link"></span> Next Steps</h3>
|
35 | 39 | <ul>
|
36 |
| - <li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started</a> guide, then please head back to the tutorial and follow the next steps!</li> |
37 |
| - <li>If you deployed this app by deploying the Heroku Button, then in a command line shell, run:</li> |
38 |
| - <ul> |
39 |
| - <li><code>git clone https://github.com/heroku/go-getting-started</code> - get the code into your local environment</li> |
40 |
| - <li><code>cd go-getting-started</code></li> |
41 |
| - <li><code>go install .</code> - compile the binary and install it into your $GOPATH/bin</li> |
42 |
| - <li><code>heroku git:remote -a <your-app-name></code> - associate the Heroku app with the repository</li> |
43 |
| - <li>You'll now be set up to run the app locally, or <a href="https://devcenter.heroku.com/articles/getting-started-with-go#push-local-changes">deploy changes</a> to Heroku</li> |
44 |
| - </ul> |
| 40 | + <li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started on Heroku with Go</a> or <a href="https://devcenter.heroku.com/articles/getting-started-with-go-fir">Getting Started on Heroku Fir with Go</a> guide, then please head back to the tutorial and follow the next steps!</li> |
45 | 41 | </ul>
|
46 | 42 | <h3><span class="glyphicon glyphicon-link"></span> Helpful Links</h3>
|
47 | 43 | <ul>
|
48 | 44 | <li><a href="https://www.heroku.com/home">Heroku</a></li>
|
49 | 45 | <li><a href="https://devcenter.heroku.com/">Heroku Dev Center</a></li>
|
50 |
| - <li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started with Go on Heroku</a></li> |
51 |
| - <li><a href="https://devcenter.heroku.com/articles/go-support">Heroku Go Support</a></li> |
| 46 | + <li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started on Heroku with Go</a></li> |
| 47 | + <li><a href="https://devcenter.heroku.com/articles/getting-started-with-go-fir">Getting Started on Heroku Fir with Go</a></li> |
| 48 | + <li><a href="https://devcenter.heroku.com/categories/go-support">Go articles on the Heroku Dev Center</a></li> |
52 | 49 | </ul>
|
53 | 50 | </div>
|
54 |
| - </div> <!-- row --> |
55 |
| - <div class="alert alert-info text-center" role="alert"> |
56 |
| - 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. |
| 51 | + </div> |
| 52 | + <div class="row" style="margin-top:1em"> |
| 53 | + <div class="col-md-12"> |
| 54 | + <p class="alert alert-info" role="alert"> |
| 55 | + 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. |
| 56 | + </p> |
| 57 | + </div> |
57 | 58 | </div>
|
58 | 59 | </div>
|
59 | 60 |
|
|
0 commit comments