Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtah_shortener

This is a simple URL shortener for rtah.xyz - example: https://rtah.xyz/hello or https://rtah.xyz/google or https://rtah.xyz/Vbx8d

This will make it easier to share long links, like for Blog Entries and such, on various social media platforms...

Deployment (Linger + Gunicorn)

This app runs on a DreamHost VPS using Gunicorn with systemd user services (Linger) for automatic startup and restart.

Service Configuration

The systemd service file is located at ~/.config/systemd/user/gunicorn-rtah-shortener.service:

[Unit]
Description=Gunicorn instance for rtah.xyz
After=network-online.target
Wants=network-online.target

[Service]
WorkingDirectory=/home/lar_mo/rtah.xyz/rtah_shortener
Environment="PATH=/home/lar_mo/rtah.xyz/rtah_shortener/.venv/bin"
ExecStart=/home/lar_mo/rtah.xyz/rtah_shortener/.venv/bin/gunicorn --bind=0.0.0.0:8000 --timeout 120 --workers=3 --threads=3 rtah_utils.wsgi
Restart=always
RestartSec=10

[Install]
WantedBy=default.target

Useful Commands

# Check status
systemctl --user status gunicorn-rtah-shortener

# Restart service
systemctl --user restart gunicorn-rtah-shortener

# View logs
journalctl --user -u gunicorn-rtah-shortener -f

# Stop service
systemctl --user stop gunicorn-rtah-shortener

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages