Skip to content

Commit 752b459

Browse files
committed
Chore: Update docs and project name
1 parent 172e16d commit 752b459

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Hello Service
1+
# Hello Node.js Service
22

33
by [Nicholas C. Zakas](https://humanwhocodes.com)
44

@@ -24,6 +24,13 @@ $ npm start
2424

2525
Locally, this will run the server on http://localhost:8080.
2626

27+
To run inside a Docker container, download the [`pack` CLI](https://buildpacks.io/docs/tools/pack/cli/install/) and then run:
28+
29+
```
30+
$ pack build app --builder gcr.io/buildpacks/builder
31+
$ docker run -it --init -p 8080:8080 -e PORT=8080 app
32+
```
33+
2734
## Notes
2835

2936
1. The server reads from the `PORT` environment variable to determine which port to listen on. This is important because Google Cloud Run defines this variable and it's the only port that will be open.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@humanwhocodes/hello-service",
2+
"name": "@humanwhocodes/hello-nodejs-service",
33
"version": "0.4.0",
44
"description": "A simple microservice for testing Google Cloud Run.",
55
"private": true,
@@ -18,7 +18,7 @@
1818
},
1919
"repository": {
2020
"type": "git",
21-
"url": "git+https://github.com/humanwhocodes/hello-service.git"
21+
"url": "git+https://github.com/humanwhocodes/hello-nodejs-service.git"
2222
},
2323
"keywords": [
2424
"Google Cloud Run",

0 commit comments

Comments
 (0)