From 126ded01fdcd2edc6b3455cda744a891d1369403 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 3 Oct 2021 20:51:36 +0200 Subject: [PATCH] Added PORT param to start script (#50) --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a09bf3..3745bf4 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ The easiest way is to use their creators' own platform, [Vercel](https://vercel. [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2FTheDavidDelta%2Flingva-translate%2Ftree%2Fmain&env=NEXT_PUBLIC_SITE_DOMAIN&envDescription=Your%20domain) -There's also an [official Docker image](https://hub.docker.com/repository/docker/thedaviddelta/lingva-translate) available for easing the deployment using Compose, Kubernetes or similar technologies. Remember to also include the environment variable (simplified to `site_domain`) when running the container. +There's also an [official Docker image](https://hub.docker.com/r/thedaviddelta/lingva-translate) available for easing the deployment using Compose, Kubernetes or similar technologies. Remember to also include the environment variable (simplified to `site_domain`) when running the container. ```bash docker run -p 3000:3000 -e site_domain=lingva.ml thedaviddelta/lingva-translate:latest diff --git a/package.json b/package.json index 861b888..107cde0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dev": "next dev", "debug": "NODE_OPTIONS='--inspect' next dev", "build": "next build", - "start": "next start", + "start": "next start --port ${PORT-3000}", "test": "jest", "cy:open": "cypress open", "cy:run": "cypress run"