diff --git a/README.md b/README.md index a5c4499..2ceb8e8 100644 --- a/README.md +++ b/README.md @@ -28,27 +28,39 @@ Copy `.env.example` to `.env`: ## Setup -### ...with PDM +### with systemd ```sh -pdm install --prod -pdm run python app.py -``` +mkdir -p /srv/discord +cd /srv/discord -### ...with requirements.txt and virtualenv +sudo useradd --system -s /srv/discord discord +sudo chown -R discord:discord /srv/discord -```sh -virtualenv .venv -source .venv/bin/activate -pip install -r requirements.txt -python app.py +sudo -Hu discord git clone https://git.trwnh.com/a/umi.git + +python -m venv .venv +.venv/bin/pip install -r umi/requirements.txt + +sudo cp umi/umi@.service /etc/systemd/system/umi@.service +sudo systemctl daemon-reload +sudo systemctl start umi@umi ``` ### ...with Docker Compose ```sh -docker compose build -docker compose up -d +mkdir -p /srv/discord +cd /srv/discord + +sudo useradd --system -s /srv/discord discord +sudo chown -R discord:discord /srv/discord + +sudo -Hu discord git clone https://git.trwnh.com/a/umi.git + +cd umi +sudo docker compose build +sudo docker compose up -d ``` ## Log into YouTube