Skip to content

Latest commit

 

History

History
92 lines (73 loc) · 2.42 KB

README.md

File metadata and controls

92 lines (73 loc) · 2.42 KB

Scripty (v2)

rewrite of the old Scripty in general

selfhosting

should work, officially supported if you're using linux:

only supports linux, will not support any other OS, especially not windows

WSL does not count as linux, use a VM at the very least (although good luck getting GPU passthrough)

requirements

recommended distros

  • arch: has the easiest install process for the latest versions of everything, and is what scripty runs on in production
  • debian: has old versions of stuff (that will likely still work) but is still a lot better than the dumpster fire that is ubuntu

arch

sudo pacman -S postgresql redis mold clang base-devel pkgconf

all distros

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

prepare

clone repo

git clone https://github.com/scripty-bot/scripty
cd scripty

migrate database

cargo install sqlx-cli # skip if you already have it
sudo -u postgres createuser scripty -P # will prompt for password
sudo -u postgres createdb -O scripty scripty
cp .env.example .env
nano .env # edit DATABASE_URL to match your URL
cargo sqlx migrate run

troubleshooting

double check pg_hba.conf and postgresql.conf if you get a connection error

build

cargo build --release 
# or if you want a more optimized build
# takes about 3.5 minutes on a 13700K vs 45s for the normal build
# probably not worth it for casual users
cargo build --profile release-full

configure

cp config.toml.example config.toml
nano config.toml # edit to your liking
# note stt

run

./target/release/scripty_v2

advanced

MUSL build

same as above, but build with --target x86_64-unknown-linux-musl and execute ./target/x86_64-unknown-linux-musl/release/scripty_v2

on arch also install the musl package

docker?

https://www.youtube.com/watch?v=PivpCKEiQOQ

translations?

Translation status