Update README.md
This commit is contained in:
parent
daadc9c82d
commit
317885e78e
1 changed files with 24 additions and 12 deletions
36
README.md
36
README.md
|
@ -28,27 +28,39 @@ Copy `.env.example` to `.env`:
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
### ...with PDM
|
### with systemd
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pdm install --prod
|
mkdir -p /srv/discord
|
||||||
pdm run python app.py
|
cd /srv/discord
|
||||||
```
|
|
||||||
|
|
||||||
### ...with requirements.txt and virtualenv
|
sudo useradd --system -s /srv/discord discord
|
||||||
|
sudo chown -R discord:discord /srv/discord
|
||||||
|
|
||||||
```sh
|
sudo -Hu discord git clone https://git.trwnh.com/a/umi.git
|
||||||
virtualenv .venv
|
|
||||||
source .venv/bin/activate
|
python -m venv .venv
|
||||||
pip install -r requirements.txt
|
.venv/bin/pip install -r umi/requirements.txt
|
||||||
python app.py
|
|
||||||
|
sudo cp umi/umi@.service /etc/systemd/system/umi@.service
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl start umi@umi
|
||||||
```
|
```
|
||||||
|
|
||||||
### ...with Docker Compose
|
### ...with Docker Compose
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker compose build
|
mkdir -p /srv/discord
|
||||||
docker compose up -d
|
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
|
## Log into YouTube
|
||||||
|
|
Loading…
Reference in a new issue