Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
handbook:runbooks:forgejo_upgrade [2025-09-30 18:58 UTC] – removed - external edit (Unknown date) 127.0.0.1 | handbook:runbooks:forgejo_upgrade [2025-09-30 18:59 UTC] (current) – thhsh | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Forgejo - Upgrade ====== | ||
+ | Notes and instructions for upgrading [[https:// | ||
+ | |||
+ | ===== Upgrading Forgejo (binary) ===== | ||
+ | Follow these steps to upgrade a binary (not Docker) Forgejo installation. These instructions are adapted from the [[https:// | ||
+ | |||
+ | ==== 0. Prerequisites ==== | ||
+ | SSH to the server with a sudo-capable user account. | ||
+ | |||
+ | ==== 1. Back up existing install ==== | ||
+ | Switch to the Forgejo user (usually '' | ||
+ | <code bash> | ||
+ | sudo -i -u git | ||
+ | forgejo dump --config / | ||
+ | forgejo manager flush-queues --config / | ||
+ | exit | ||
+ | </ | ||
+ | |||
+ | ==== 2. Download the latest Forgejo binary ==== | ||
+ | Check https:// | ||
+ | <code bash> | ||
+ | chmod +x forgejo-XX.Y.Z-linux-XXX64</ | ||
+ | |||
+ | ==== 3. Stop Forgejo ==== | ||
+ | Stop the running (existing) Forgejo binary. | ||
+ | <code bash> | ||
+ | |||
+ | ==== 4. Copy in the new binary ==== | ||
+ | Copy the newly downloaded Forgejo binary over the existing binary. | ||
+ | <code bash> | ||
+ | |||
+ | Update the new binary' | ||
+ | <code bash> | ||
+ | |||
+ | ==== 5. Start Forgejo ==== | ||
+ | Start the newly-replaced Forgejo binary. | ||
+ | <code bash> | ||
+ | |||
+ | ==== 6. Make sure it works ==== | ||
+ | Make sure that everything works! | ||
+ | |||
+ | |||
+ | |||