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
|
||||
|
||||
### ...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
|
||||
|
|
Loading…
Reference in a new issue