Skip to content
Chelsea edited this page Jun 26, 2025 · 1 revision

Install pre-requisites

sudo apt install python3.12, python3-pip, git, python3-venv

Clone repo

cd /usr/local

git clone https://github.com/foxtrt-com/shrt.git

Setup venv

cd shrt

python3.12 -m venv venv

Install requirements

source venv/bin/activate

pip install -r requirements.txt

deactivate

Configure SECRET_KEY

python3.12 -c 'import secrets; print(secrets.token_hex())'

echo "SECRET_KEY = 'PUT YOUR KEY HERE'" > ./instance/config.py

Create service file

nano /etc/systemd/system/foxtrtshrt.service

[Unit]
Description=Foxtrt.com SHRT application
After=network.target

[Service]
WorkingDirectory=/usr/local/shrt
ExecStart=/usr/local/shrt/venv/bin/waitress-serve --call app:create_app
Restart=always

[Install]
WantedBy=multi-user.target

Enable service

sudo systemctl daemon-reload
sudo systemctl enable foxtrtshrt

Clone this wiki locally