Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENDOC-622 add note for run command #636

Merged
merged 2 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions vuepress/docs/next/docs/getting-started/ent-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ See the [Build and Publish a Simple Bundle](../../tutorials/create/pb/publish-si
- `ent bundle run`:
- The `run` command executes processes in accordance with the component type and stack, e.g `mvn spring-boot:run` is executed for a Spring Boot microservice
- All the components in the bundle run in parallel, with the logs printed to the standard output
- The `run` command can be used to run multiple microservices side by side without collision in local development, but in production, they must run on port 8081

### Package
| Command| Descriptions
|:--|:--
Expand Down
2 changes: 2 additions & 0 deletions vuepress/docs/next/tutorials/create/ms/add-api-claim.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ ent bundle run simple-node-ms
```
* Access <http://localhost:8081/api/hello> to see a `Hello World!` response with a timestamp.
* Access <http://localhost:8081/api/health> to see a standard `{"status:"UP"}` response.

In local development, the run command can be used to modify the port to run multiple microservices, but in production, microservices must run on port 8081.

6. Finally, create `microservices/simple-node-ms/Dockerfile` so ent knows how to assemble the Docker image for the service:
```
Expand Down
2 changes: 1 addition & 1 deletion vuepress/docs/next/tutorials/create/ms/run-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ent bundle svc start keycloak
``` sh
ent bundle run conference-ms
```
To check that the MS is working, go to `http://localhost:8081/`.
To check that the MS is working, go to `http://localhost:8081/`. In local development, the run command can be used to modify the port to run multiple microservices, but in production, microservices must run on port 8081.

>1. If you want to reset the conference-ms data, and you selected "H2 with disk-based persistence" during microservice generation, you can delete the target folder, restart the microservice, and the data will be regenerated.
>2. The `serviceUrl` variable is the microservice API URL.
Expand Down
2 changes: 2 additions & 0 deletions vuepress/docs/v7.1/docs/getting-started/ent-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ See the [Build and Publish a Simple Bundle](../../tutorials/create/pb/publish-si
- `ent bundle run`:
- The `run` command executes processes in accordance with the component type and stack, e.g `mvn spring-boot:run` is executed for a Spring Boot microservice
- All the components in the bundle run in parallel, with the logs printed to the standard output
- The `run` command can be used to run multiple microservices side by side without collision in local development, but in production, they must run on port 8081

### Package
| Command| Descriptions
|:--|:--
Expand Down
1 change: 1 addition & 0 deletions vuepress/docs/v7.1/tutorials/create/ms/add-api-claim.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ent bundle run simple-node-ms
```
* Access <http://localhost:8081/api/hello> to see a `Hello World!` response with a timestamp.
* Access <http://localhost:8081/api/health> to see a standard `{"status:"UP"}` response.
In local development, the run command can be used to modify the port to run multiple microservices, but in production, microservices must run on port 8081.

6. Finally, create `microservices/simple-node-ms/Dockerfile` so ent knows how to assemble the Docker image for the service:
```
Expand Down
2 changes: 1 addition & 1 deletion vuepress/docs/v7.1/tutorials/create/ms/run-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ent bundle svc start keycloak
``` sh
ent bundle run conference-ms
```
To check that the MS is working, go to `http://localhost:8081/`.
To check that the MS is working, go to `http://localhost:8081/`. In local development, the run command can be used to modify the port to run multiple microservices, but in production, microservices must run on port 8081.

>1. If you want to reset the conference-ms data, and you selected "H2 with disk-based persistence" during microservice generation, you can delete the target folder, restart the microservice, and the data will be regenerated.
>2. The `serviceUrl` variable is the microservice API URL.
Expand Down