ubergeek77 / Lemmy-Easy-Deploy

Deploy Lemmy the easy way!
MIT License
133 stars 14 forks source link

Add cron job to the README/Updating section #79

Closed danielkrajnik closed 8 months ago

danielkrajnik commented 10 months ago

Did you check the FAQ & Troubleshooting section for answers to common questions and issues?

Yes

Describe the issue

What happened? Post any relevant log snippets.

Thank you for creating this repo. I've gone through both ansible and docker from lemmy's official documentation and without your scripts I would have given up on lemmy!

It may be obvious, but it may be helpful to some users if README also included a cron job to keep the deployment up to date? Even something simple like:

crontab -e

# every day at 4:21am
21 4 * * * cd ~/Lemmy-Easy-Deploy && git pull origin main && git checkout $(git describe --tags `git rev-list --tags --max-count=1`) && ./deploy.sh
ubergeek77 commented 8 months ago

Thank you for your suggestion! However due to Lemmy's history of having a few mishaps during previous version bumps, and because I may ask the user questions in this script, I'm not comfortable recommending completely hands-off upgrades with no user confirmation.

However, you're welcome to continue doing this for your server, and I'll try to keep this in mind when working on the CLI!