Skip to content

Commit cdd313f

Browse files
committed
Master => main
1 parent 6b45b21 commit cdd313f

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/java_database_name
2929

3030
```sh
3131
$ heroku create
32-
$ git push heroku master
32+
$ git push heroku main
3333
$ heroku open
3434
```
3535

docs/deploying-spring-boot-apps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99
```
1010
<!--
1111
rundoc src:
12-
https://github.com/heroku/java-getting-started/blob/master/deploying-spring-boot-apps.md
12+
https://github.com/heroku/java-getting-started/blob/main/deploying-spring-boot-apps.md
1313
1414
Command:
1515
$ rundoc build --path deploying-spring-boot-apps.md
@@ -112,7 +112,7 @@ for your app. You can rename it later with the `heroku apps:rename` command.
112112
Now deploy your code:
113113

114114
```term
115-
:::>- $ git push heroku master
115+
:::>- $ git push heroku main || git push heroku master
116116
:::-> | (head -6; echo "..."; tail -18)
117117
```
118118

@@ -220,7 +220,7 @@ public class DatabaseConfig {
220220
```
221221
:::-- $ git add .
222222
:::-- $ git commit -m "database"
223-
:::-- $ git push heroku master
223+
:::-- $ git push heroku main || git push heroku master
224224
:::-- $ cd ..
225225
:::-- $ mv demo deploying-spring-boot-apps
226226
```

docs/java-getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99
```
1010
<!--
1111
rundoc src:
12-
https://github.com/heroku/java-getting-started/blob/master/java-getting-started.md
12+
https://github.com/heroku/java-getting-started/blob/main/java-getting-started.md
1313
1414
Command:
1515
$ rundoc build --path java-getting-started.md
@@ -112,7 +112,7 @@ To create a local copy of a sample app that you can deploy to Heroku, execute th
112112
:::>- $ git clone https://github.com/heroku/java-getting-started
113113
:::>- $ cd java-getting-started
114114
:::-- $ git fetch
115-
:::-- $ git merge origin/master
115+
:::-- $ git merge origin/main
116116
```
117117

118118
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
134134
Now deploy your code:
135135

136136
```term
137-
:::>- $ git push heroku master
137+
:::>- $ git push heroku main
138138
:::-> | (head -6; echo "..."; tail -18)
139139
```
140140

@@ -218,7 +218,7 @@ To prevent abuse, scaling a non-free application to more than one dyno requires
218218

219219
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.
220220

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:
222222

223223
```xml
224224
:::-> $ sed -n '27,35p' pom.xml
@@ -359,7 +359,7 @@ Next, commit the changes to the repository:
359359
Now deploy, just as you did previously:
360360

361361
```term
362-
:::>- $ git push heroku master
362+
:::>- $ git push heroku main
363363
```
364364

365365
Finally, check that your updated code is successfully deployed:

src/main/resources/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3><span class="glyphicon glyphicon-info-sign"></span> How this sample app work
2525
<ul>
2626
<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>
2727

28-
<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>
28+
<li>When Heroku received the source code, it fetched all the dependencies in the <a href="https://github.com/heroku/java-getting-started/blob/main/pom.xml">pom.xml</a>, creating a slug.</li>
2929
<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>
3030
<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>
3131
</ul>

0 commit comments

Comments
 (0)