Skip to content

Commit db1c8c9

Browse files
colincaseyschneems
andauthored
Updated with fir-related content and links (#348)
* Updated with fir-related content and links * Remove Deploy to Heroku button * Apply suggestions from code review --------- Co-authored-by: Richard Schneeman <[email protected]>
1 parent bb7db3d commit db1c8c9

File tree

3 files changed

+68
-22
lines changed

3 files changed

+68
-22
lines changed

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
A barebones Node.js app using [Express](https://expressjs.com/).
44

5-
This application supports the [Getting Started on Heroku with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs) article - check it out.
5+
This application supports the tutorials for both the [Cedar and Fir generations](https://devcenter.heroku.com/articles/generations) of the Heroku platform. You can check them out here:
6+
7+
* [Getting Started on Heroku with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
8+
* [Getting Started on Heroku Fir with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir)
69

710
## Running Locally
811

@@ -21,7 +24,11 @@ Your app should now be running on [localhost:5006](http://localhost:5006/).
2124

2225
Using resources for this example app counts towards your usage. [Delete your app](https://devcenter.heroku.com/articles/heroku-cli-commands#heroku-apps-destroy) and [database](https://devcenter.heroku.com/articles/heroku-postgresql#removing-the-add-on) as soon as you are done experimenting to control costs.
2326

24-
By default, apps use Eco dynos if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps to Heroku. Learn more about our low-cost plans [here](https://blog.heroku.com/new-low-cost-plans).
27+
### Deploy on [Cedar][cedar]
28+
29+
By default, apps use Eco dynos on [Cedar][cedar] if you are subscribed to Eco. Otherwise, it defaults to Basic dynos. The
30+
Eco dynos plan is shared across all Eco dynos in your account and is recommended if you plan on deploying many small apps
31+
to Heroku. Learn more about our low-cost plans [here](https://blog.heroku.com/new-low-cost-plans).
2532

2633
Eligible students can apply for platform credits through our new [Heroku for GitHub Students program](https://blog.heroku.com/github-student-developer-program).
2734

@@ -30,16 +37,30 @@ $ heroku create
3037
$ git push heroku main
3138
$ heroku open
3239
```
33-
or
3440

35-
[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
41+
### Deploy on [Fir](https://devcenter.heroku.com/articles/generations#fir)
42+
43+
By default, apps on [Fir][fir] use 1X-Classic dynos. To create an app on [Fir][fir] you'll need to
44+
[create a private space](https://devcenter.heroku.com/articles/working-with-private-spaces#create-a-private-space)
45+
first.
46+
47+
```
48+
$ heroku spaces:create <space-name> --team <team-name> --generation fir
49+
$ heroku create --space <space-name>
50+
$ git push heroku main
51+
$ heroku open
52+
```
3653

3754
## Documentation
3855

3956
For more information about using Node.js on Heroku, see these Dev Center articles:
4057

4158
- [Getting Started on Heroku with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs)
59+
- [Getting Started on Heroku Fir with Node.js](https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir)
4260
- [Heroku Node.js Support](https://devcenter.heroku.com/articles/nodejs-support)
4361
- [Node.js on Heroku](https://devcenter.heroku.com/categories/nodejs)
4462
- [Best Practices for Node.js Development](https://devcenter.heroku.com/articles/node-best-practices)
4563
- [Using WebSockets on Heroku with Node.js](https://devcenter.heroku.com/articles/node-websockets)
64+
65+
[cedar]: https://devcenter.heroku.com/articles/generations#cedar
66+
[fir]: https://devcenter.heroku.com/articles/generations#fir

views/pages/index.ejs

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,55 @@
1616
<h1>Getting Started on Heroku with Node.js</h1>
1717
<p>This is a sample Node 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>
1818
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-nodejs"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku with Node.js</a>
19+
<a type="button" class="btn btn-lg btn-default" href="https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir"><span class="glyphicon glyphicon-flash"></span> Getting Started on Heroku Fir with Node.js</a>
1920
<a type="button" class="btn btn-lg btn-primary" href="https://github.com/heroku/node-js-getting-started"><span class="glyphicon glyphicon-download"></span> Source on GitHub</a>
2021
</div>
2122
</div>
2223
<div class="container">
23-
<div class="alert alert-info text-center" role="alert">
24-
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-nodejs" class="alert-link">Getting Started on Heroku with Node.js</a> tutorial.
24+
<div class="lead">
25+
To deploy your own copy, and learn the fundamentals of the Heroku platform, head over to either of the following tutorials:
26+
<ul>
27+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs" class="alert-link">Getting Started on Heroku with Node.js</a></li>
28+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs" class="alert-link">Getting Started on Heroku Fir with Node.js</a></li>
29+
</ul>
2530
</div>
2631
<hr>
2732
<div class="row">
2833
<div class="col-md-6">
2934
<h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app works</h3>
3035
<ul>
31-
<li>This app was deployed to Heroku, either using Git or by using <a href="https://github.com/heroku/node-js-getting-started">Heroku Button</a> on the repository.</li>
32-
33-
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/node-js-getting-started/blob/main/package.json">package.json</a>, creating a deployable slug.</li>
34-
<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>
36+
<li>This app was deployed to Heroku using Git.</li>
37+
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/node-js-getting-started/blob/main/package.json">package.json</a>, creating a deployable build artifact.</li>
38+
<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>
3539
<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>
3640
</ul>
3741
</div>
3842
<div class="col-md-6">
3943
<h3><span class="glyphicon glyphicon-link"></span> Next Steps</h3>
4044
<ul>
41-
<li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Getting Started</a> guide, then please head back to the tutorial and follow the next steps!</li>
42-
<li>If you deployed this app by deploying the Heroku Button, then in a command line shell, run:</li>
43-
<ul>
44-
<li><code>git clone https://github.com/heroku/node-js-getting-started.git</code> - this will create a local copy of the source code for the app</li>
45-
<li><code>cd node-js-getting-started</code> - change directory into the local source code repository</li>
46-
<li><code>heroku git:remote -a &lt;your-app-name></code> - associate the Heroku app with the repository</li>
47-
<li>You'll now be set up to run the app locally, or <a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs#push-local-changes">deploy changes</a> to Heroku</li>
48-
</ul>
45+
<li>If you are following the <a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs" class="alert-link">Getting Started on Heroku with Node.js</a> or
46+
<a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs" class="alert-link">Getting Started on Heroku Fir with Node.js</a> guide,
47+
then please head back to the tutorial and follow the next steps!</li>
4948
</ul>
5049
<h3><span class="glyphicon glyphicon-link"></span> Helpful Links</h3>
5150
<ul>
5251
<li><a href="https://www.heroku.com/home">Heroku</a></li>
5352
<li><a href="https://devcenter.heroku.com/">Heroku Dev Center</a></li>
5453
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Getting Started on Heroku with Node.js</a></li>
54+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir">Getting Started on Heroku Fir with Node.js</a></li>
5555
<li><a href="https://devcenter.heroku.com/articles/deploying-nodejs">Deploying Node Apps on Heroku</a></li>
5656
</ul>
5757
</div>
5858
</div> <!-- row -->
59-
<div class="alert alert-info text-center" role="alert">
60-
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.
59+
<div>
60+
61+
</div>
62+
<div class="row" style="margin-top:1em">
63+
<div class="col-md-12">
64+
<p class="alert alert-info" role="alert">
65+
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.
66+
</p>
67+
</div>
6168
</div>
6269
</div>
6370

views/partials/nav.ejs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,39 @@
88
<a href="https://devcenter.heroku.com/articles/how-heroku-works"><span class="glyphicon glyphicon-user"></span> How Heroku Works</a>
99
</li>
1010
<li class="dropdown">
11-
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides <span class="caret"></span></a>
11+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides (Cedar) <span class="caret"></span></a>
1212
<ul class="dropdown-menu" role="menu">
1313
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-ruby">Getting Started on Heroku with Ruby</a></li>
1414
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs">Getting Started on Heroku with Node.js</a></li>
1515
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php">Getting Started on Heroku with PHP</a></li>
1616
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-python">Getting Started on Heroku with Python</a></li>
1717
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java">Getting Started on Heroku with Java</a></li>
18-
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started on Heroku with Go</a></li>
1918
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-clojure">Getting Started on Heroku with Clojure</a></li>
2019
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-scala">Getting Started on Heroku with Scala</a></li>
20+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go">Getting Started on Heroku with Go</a></li>
21+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-dotnet">Getting Started on Heroku with .Net</a></li>
2122
<li class="divider"></li>
2223
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-heroku-and-connect-without-local-dev">Getting Started on Heroku with Heroku Connect</a></li>
2324
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-jruby">Getting Started on Heroku with Ruby (Microsoft Windows)</a></li>
2425
</ul>
2526
</li>
27+
<li class="dropdown">
28+
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-info-sign"></span> Getting Started Guides (Fir) <span class="caret"></span></a>
29+
<ul class="dropdown-menu" role="menu">
30+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-ruby-fir">Getting Started on Heroku Fir with Ruby</a></li>
31+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-nodejs-fir">Getting Started on Heroku Fir with Node.js</a></li>
32+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-php-fir">Getting Started on Heroku Fir with PHP</a></li>
33+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-python-fir">Getting Started on Heroku Fir with Python</a></li>
34+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java-maven-fir">Getting Started on Heroku Fir with Java (Maven)</a></li>
35+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-java-gradle-fir">Getting Started on Heroku Fir with Java (Gradle)</a></li>
36+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-clojure-fir">Getting Started on Heroku Fir with Clojure</a></li>
37+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-scala-fir">Getting Started on Heroku Fir with Scala</a></li>
38+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-go-fir">Getting Started on Heroku Fir with Go</a></li>
39+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-dotnet-fir">Getting Started on Heroku Fir with .Net</a></li>
40+
<li class="divider"></li>
41+
<li><a href="https://devcenter.heroku.com/articles/getting-started-with-heroku-and-connect-without-local-dev">Getting Started on Heroku with Heroku Connect</a></li>
42+
</ul>
43+
</li>
2644
</ul>
2745
<ul class="nav navbar-nav navbar-right">
2846
<li class="navbar-right">

0 commit comments

Comments
 (0)