Skip to content

Commit 261a3f8

Browse files
committed
docs(README): explain how to run the application with prod profile
1 parent 84ebabf commit 261a3f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ Build and run the application with the following command in a terminal window:
5959

6060
This will activate the default `dev` profile and launch the built-in Tomcat web server on port 8080 that was forwarded using _ngrok_ in step 1.
6161

62+
If you want to use the `prod` profile, build and run the application with the following command:
63+
64+
```sh
65+
./mvnw -Pprod -Dspring-boot.run.profiles=prod spring-boot:run
66+
```
67+
6268
When the application has started, open the _ngrok_ HTTPS URL in your preferred web browser and follow instructions on the front page.
6369

6470
## Table of contents

0 commit comments

Comments
 (0)