Merge pull request #12563 from longqua69/patch-3

doc: clarify the description of NodeJS guides
This commit is contained in:
Usha Mandya 2021-03-25 15:25:10 +00:00 committed by GitHub
commit 3d615063b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ $ docker run node-docker
When you run this command, youll notice that you were not returned to the command prompt. This is because our application is a REST server and will run in a loop waiting for incoming requests without return control back to the OS until we stop the container. When you run this command, youll notice that you were not returned to the command prompt. This is because our application is a REST server and will run in a loop waiting for incoming requests without return control back to the OS until we stop the container.
Lets make a GET request to the server using the curl command. Lets open a new terminal then make a GET request to the server using the curl command.
```shell ```shell
$ curl --request POST \ $ curl --request POST \
@ -50,7 +50,7 @@ Start the container and expose port 8000 to port 8000 on the host.
$ docker run --publish 8000:8000 node-docker $ docker run --publish 8000:8000 node-docker
``` ```
Now lets rerun the curl command from above. Now lets rerun the curl command from above. Remember to open a new terminal.
```shell ```shell
$ curl --request POST \ $ curl --request POST \