magnusmanske / listeria_rs

Repo for the Wikimedia Listeria bot
https://listeria.toolforge.org/
23 stars 6 forks source link

How to run documentation #95

Open zache-fi opened 1 year ago

zache-fi commented 1 year ago

Some documentation how to clone code from the repository and run the ListeriaBot using own copy of the code. Some notes

How to run RUST & cargo on toolforge

Documention from src/bin/bot.rs

TEST DB CONNECT
ssh magnus@tools-login.wmflabs.org -L 3308:tools-db:3306 -N
REFRESH FROM GIT
cd /data/project/listeria/listeria_rs ; git pull ; \rm ./target/release/bot ; jsub -mem 4g -cwd cargo build --release
# RUN BOT ON TOOLFORGE
cd ~/listeria_rs ; jsub -mem 6g -cwd -continuous ./target/release/bot