This document provides information for those interested in hacking on or contributing to SourceHut.
Here are some tips to expedite the installation procedure:
python3 run.py
instead.In addition to the runtime dependencies of our packages, building packages from source requires additional build-time dependencies:
sassc
for CSS pre-processingnpm
for minifying CSSgo
for compiling the Go APIsDo this once, when starting with meta.sr.ht:
config.example.ini
to config.ini
and configure
everything following the instructions in the comments.Then, for each SERVICE
:
export SRHT_PATH=/path/to/core.sr.ht/srht
export PYTHONPATH=/path/to/core.sr.ht:/path/to/$SERVICE
make all
For each service except meta.sr.ht:
config.example.ini
into meta.sr.ht's
config.ini
, modifying it according to the comments.ln -s /path/to/meta.sr.ht/config.ini config.ini
For each SERVICE
:
createdb $SERVICE
./$SRV-initdb
(e.g. ./metasrht-initdb
)To run a service:
./api/api
python run.py
We use git send-email and discuss patches (and other development topics) on the sr.ht-dev list. Please send your patches and development questions there.
commit 7b1ad7e37a518af54c2d519f785ed8a3bea7a240 Author: Haowen Liu <lhw@lunacd.com> Date: 2022-06-20T12:51:57-07:00 Fix debian/oldstable update frequency