- deploy.sh: Script to pull code and restart Docker containers - webhook-server.py: HTTP server to receive Gitea push events - shorts-maker-webhook.service: Systemd service for webhook server - setup-autodeploy.sh: Setup script for the server 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
479 B
Desktop File
22 lines
479 B
Desktop File
[Unit]
|
|
Description=Shorts Maker Webhook Server
|
|
After=network.target docker.service
|
|
Wants=docker.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=bini
|
|
Group=bini
|
|
WorkingDirectory=/home/bini/shorts-maker
|
|
Environment=WEBHOOK_SECRET=your-secret-here
|
|
ExecStart=/usr/bin/python3 /home/bini/shorts-maker/webhook-server.py
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Logging
|
|
StandardOutput=append:/var/log/webhook-server.log
|
|
StandardError=append:/var/log/webhook-server.log
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|