Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 928 Bytes

QUICKSTART.md

File metadata and controls

33 lines (22 loc) · 928 Bytes

Quickstart

The steps necessary to set up mscbot from scratch are the following:

setup a github access token with permission repo:public_repo.

on debian:

 sudo apt install default-libmysqlclient-dev libsqlite3-dev libpq-dev postgresql

setup postgres:

sudo -u postgres createuser -P mscbot # prompts for password
sudo -u postgres createdb -O mscbot mscbot

setup and run diesel_cli:

cargo install diesel_cli
DATABASE_URL=postgres://mscbot:<password>@localhost/mscbot diesel migration run

run mscbot:

DATABASE_URL=postgres://mscbot:<password>@localhost/mscbot DATABASE_POOL_SIZE=20 GITHUB_ACCESS_TOKEN=<access_token> GITHUB_USER_AGENT=mscbot GITHUB_WEBHOOK_SECRETS= GITHUB_SCRAPE_INTERVAL=5 POST_COMMENTS=true cargo run

If you need debug logging, prepend RUST_LOG=debug to the above command.