You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love this app and wanted to send in my autoupdating baremetal stuff that runs once per day. i have it deployed in a lxc container on proxmox using debian 12 image. Please feel free to add it to the baremetal instructions if you'd like.
🏷️ Feature Request Type
Deployment
🔖 Feature description
There are plenty of valid reasons for not using autoupdate but for home use it works great.
✔️ Solution
create the script
# nano /opt/uptime-kuma/update.sh
script contents
#!/bin/bash# Navigate to Uptime Kuma directorycd /opt/uptime-kuma
# Fetch the latest code from the repository
git fetch --all
# Get the latest stable release tag
latest_tag=$(git tag --sort=-creatordate | head -n 1)echo"Checking out the latest tag: $latest_tag"# Check out the latest stable release
git checkout $latest_tag --force
# Install dependencies and download prebuilt files
npm install --production
npm run download-dist
# Restart Uptime Kuma using PM2
pm2 restart uptime-kuma
make the script executable
# chmod +x /opt/uptime-kuma/update.sh
set a cron job to execute the script once per day (currently runs at 2AM)
📑 I have found these related issues/pull requests
Love this app and wanted to send in my autoupdating baremetal stuff that runs once per day. i have it deployed in a lxc container on proxmox using debian 12 image. Please feel free to add it to the baremetal instructions if you'd like.
🏷️ Feature Request Type
Deployment
🔖 Feature description
There are plenty of valid reasons for not using autoupdate but for home use it works great.
✔️ Solution
create the script
# nano /opt/uptime-kuma/update.sh
script contents
make the script executable
# chmod +x /opt/uptime-kuma/update.sh
set a cron job to execute the script once per day (currently runs at 2AM)
# (crontab -l; echo "0 2 * * * /opt/uptime-kuma/update.sh >> /opt/uptime-kuma/update.log 2>&1") | sed '/^$/d' | crontab -
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: