Skip to content

Commit

Permalink
Remove unused "start" script from with-docker/package.json (vercel#31053
Browse files Browse the repository at this point in the history
)

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
2 people authored and natew committed Feb 16, 2022
1 parent ee7d59d commit 45f05a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions examples/with-docker/README.md
Expand Up @@ -22,8 +22,6 @@ You can view your images created with `docker images`.

## Deploying to Google Cloud Run

The `start` script in `package.json` has been modified to accept a `PORT` environment variable (for compatibility with Google Cloud Run).

1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/install) so you can use `gcloud` on the command line.
1. Run `gcloud auth login` to log in to your account.
1. [Create a new project](https://cloud.google.com/run/docs/quickstarts/build-and-deploy) in Google Cloud Run (e.g. `nextjs-docker`). Ensure billing is turned on.
Expand Down
3 changes: 1 addition & 2 deletions examples/with-docker/package.json
Expand Up @@ -2,8 +2,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start -p ${PORT:=3000}"
"build": "next build"
},
"dependencies": {
"next": "latest",
Expand Down

0 comments on commit 45f05a3

Please sign in to comment.