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
Copy file name to clipboardExpand all lines: docs/deploying-spring-boot-apps.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ Now deploy your code:
113
113
114
114
```term
115
115
:::>- $ git push heroku master
116
-
:::-> | $ (head -6; echo "..."; tail -18)
116
+
:::-> | (head -6; echo "..."; tail -18)
117
117
```
118
118
119
119
Heroku automatically detects the application as a Maven/Java app due to the presence of a `pom.xml` file. It installed Java 8 by default, but you can easily configure this with a `system.properties` file as described in the [Specifying a Java version](https://devcenter.heroku.com/articles/java-support#specifying-a-java-version) Dev Center article. It will run your app using the [default command](https://devcenter.heroku.com/articles/java-support#default-web-process-type).
Copy file name to clipboardExpand all lines: docs/java-getting-started.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,15 +127,15 @@ First, create an app on Heroku, which prepares Heroku to receive your source cod
127
127
:::>> $ heroku create
128
128
```
129
129
130
-
When you create an app, a Git remote (named `heroku`) is also created and associated with your local Git repository.
130
+
When you create an app, a Git remote (named `heroku`) is also created and associated with your local Git repository.
131
131
132
132
By default, Heroku generates a random name for your app. You can pass a parameter to specify your own app name.
133
133
134
134
Now deploy your code:
135
135
136
136
```term
137
137
:::>- $ git push heroku master
138
-
:::-> | $ (head -6; echo "..."; tail -18)
138
+
:::-> | (head -6; echo "..."; tail -18)
139
139
```
140
140
141
141
The application is now deployed. Ensure that at least one instance of the app is running:
@@ -236,7 +236,7 @@ Run `mvn clean install` in your local directory to install the dependencies, pre
236
236
237
237
```term
238
238
:::>- $ mvn clean install
239
-
:::-> | $ (echo "..."; tail -7)
239
+
:::-> | (echo "..."; tail -7)
240
240
```
241
241
242
242
If you do not have Maven installed, or get an error like `'mvn' is not recognized as an internal or external command`, then you can use the wrapper command instead by running `mvnw clean install` on Windows or `./mvnw clean install` on Mac and Linux. This both installs Maven and runs the Maven command.
@@ -265,8 +265,8 @@ Once dependencies are installed, you can run your app locally.
265
265
Start your application locally with the `heroku local` CLI command (make sure you've already run `mvn clean install`):
0 commit comments