You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You now have a functioning Git repository that contains a simple Java application. The application includes a `pom.xml` file, which is used by Java's dependency manager, Maven.
@@ -134,7 +134,7 @@ By default, Heroku generates a random name for your app. You can pass a paramete
134
134
Now deploy your code:
135
135
136
136
```term
137
-
:::>- $ git push heroku master
137
+
:::>- $ git push heroku main
138
138
:::-> | (head -6; echo "..."; tail -18)
139
139
```
140
140
@@ -218,7 +218,7 @@ To prevent abuse, scaling a non-free application to more than one dyno requires
218
218
219
219
Heroku automatically identifies an app as a Java app if it contains a `pom.xml` file in the root directory. You can create a `pom.xml` file for your own apps with the `mvn archetype:create` command.
220
220
221
-
The demo app you deployed already has a `pom.xml` ([see it here](https://github.com/heroku/java-getting-started/blob/master/pom.xml)). Here's an excerpt:
221
+
The demo app you deployed already has a `pom.xml` ([see it here](https://github.com/heroku/java-getting-started/blob/main/pom.xml)). Here's an excerpt:
222
222
223
223
```xml
224
224
:::-> $ sed -n '27,35p' pom.xml
@@ -359,7 +359,7 @@ Next, commit the changes to the repository:
359
359
Now deploy, just as you did previously:
360
360
361
361
```term
362
-
:::>- $ git push heroku master
362
+
:::>- $ git push heroku main
363
363
```
364
364
365
365
Finally, check that your updated code is successfully deployed:
Copy file name to clipboardExpand all lines: src/main/resources/templates/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ <h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app work
25
25
<ul>
26
26
<li>This app was deployed to Heroku, either using Git or by using <ahref="https://github.com/heroku/java-getting-started">Heroku Button</a> on the repository.</li>
27
27
28
-
<li>When Heroku received the source code, it fetched all the dependencies in the <ahref="https://github.com/heroku/java-getting-started/blob/master/pom.xml">pom.xml</a>, creating a slug.</li>
28
+
<li>When Heroku received the source code, it fetched all the dependencies in the <ahref="https://github.com/heroku/java-getting-started/blob/main/pom.xml">pom.xml</a>, creating a slug.</li>
29
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
30
<li>You can scale your app, manage it, and deploy over <ahref="https://addons.heroku.com/">150 add-on services</a>, from the Dashboard or CLI.</li>
0 commit comments