Skip to content

Commit

Permalink
Chore: Update docs and project name
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Oct 12, 2020
1 parent 172e16d commit 752b459
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Hello Service
# Hello Node.js Service

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

Expand All @@ -24,6 +24,13 @@ $ npm start

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

To run inside a Docker container, download the [`pack` CLI](https://buildpacks.io/docs/tools/pack/cli/install/) and then run:

```
$ pack build app --builder gcr.io/buildpacks/builder
$ docker run -it --init -p 8080:8080 -e PORT=8080 app
```

## Notes

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.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@humanwhocodes/hello-service",
"name": "@humanwhocodes/hello-nodejs-service",
"version": "0.4.0",
"description": "A simple microservice for testing Google Cloud Run.",
"private": true,
Expand All @@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/humanwhocodes/hello-service.git"
"url": "git+https://github.com/humanwhocodes/hello-nodejs-service.git"
},
"keywords": [
"Google Cloud Run",
Expand Down

0 comments on commit 752b459

Please sign in to comment.