-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installing
Chelsea edited this page Jun 26, 2025
·
1 revision
sudo apt install python3.12, python3-pip, git, python3-venv
cd /usr/local
git clone https://github.com/foxtrt-com/shrt.git
cd shrt
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
deactivate
python3.12 -c 'import secrets; print(secrets.token_hex())'
echo "SECRET_KEY = 'PUT YOUR KEY HERE'" > ./instance/config.py
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
sudo systemctl daemon-reload
sudo systemctl enable foxtrtshrt