diff --git a/README.md b/README.md index 3e1e323..1035f53 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,13 @@ It's a svelte(kit) frontend that uses `yt-dlp` to let the user download things f ## How to Deploy -### Node +### using node -0. Install nodejs -1. Download the latest release from the [releases](https://git.pweapon.org/odo/dl.emersa.it/releases) page. -2. Unpack and decompress (`tar xvf build.tar.gz`) the release -3. Then `cd` into it and run: `npm ci` and `npm run build` -4. Copy `.env.example` to `.env`, and add needed variables -5. Run it: `node .` -6. You can also try to configure the systemd unit file inside the `configurations` folder. +- Install nodejs (if on debian, use `extrepo` for adding the official nodesource repository) +- Create a new directory ($PROJECT_ROOT) +- run `scripts/install.sh "${PROJECT_ROOT}"` + +Edit `scripts/deploy_example.sh` if you need to deploy `dl.emersa.it` to some server using `SSH`. ### Docker