tweaked README and sample .env file

This commit is contained in:
Dave Lane 2024-08-30 14:29:07 +12:00
parent efa90a9532
commit 5d83ce2817
2 changed files with 14 additions and 1 deletions

View file

@ -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). 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 ## To build a new image
docker-compose build docker-compose build

View file

@ -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