From 5d83ce2817118551fe1a848c8ca6ca71b52bc3e5 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Fri, 30 Aug 2024 14:29:07 +1200 Subject: [PATCH] tweaked README and sample .env file --- README.md | 10 ++++++++++ env.sample | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8763a83..b7c2e26 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,16 @@ A recipe for deploying a SvelteKit app via Docker Compose. This project owes a lot to [this reference](https://medium.com/@loic.joachim/dockerize-sveltekit-with-node-adapter-62c5dc6fc15a). +## To set up your SvelteKit project, ensure that your svelte.config.js file has this line: + + // import adapter from '@sveltejs/adapter-auto'; + import adapter from '@sveltejs/adapter-node'; + +and then run + + npm i -D @sveltejs/adapter-node + npm i dotenv + ## To build a new image docker-compose build diff --git a/env.sample b/env.sample index 26e33dc..67aa57c 100644 --- a/env.sample +++ b/env.sample @@ -1 +1,4 @@ -# copy this to .env to enable... +# copy this file to .env to enable... + +PORT=5173 # or whatever port you want for your reverse proxy +HOST=127.0.0.1 # or 0.0.0.0 to listen on all interfaces