惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
C
Check Point Blog
D
Docker
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
量子位
有赞技术团队
有赞技术团队
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
M
MIT News - Artificial intelligence
B
Blog
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
月光博客
月光博客

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
LifeHack Gitea to Forgejo
Ara · 2026-05-20 · via DEV Community

Ara

The Story

The story is easy , I just wanted to move from Gitea, which I was using for several years, to newly forked Forgejo. Just because The licencing and maintenance of Forgejo looked better for me.

The Challenge

The latest version of forgejo (14.0.3 at the moment of writing this article) not supported migration from the latest version of Gitea at that moment.

Surprisingly only because conflict in database versions. So what I did is :

  • Downloaded newest version of Forgejo.
  • Stopped Gitea.
  • Changed database version to value which is supported for official migration.
  • Started Forgejo with config file of Gitea

I'm managing forgejo/gitea service via systemd and use MySQL as database, but I'm sure that the same procedure is applicable for other databases and service management tools.

Systemd unit /etc/systemd/system/git.service:

[Unit]
Description=Gogs GIT
Documentation=https://forgejo.org/
Wants=network-online.target
After=network-online.target

[Service]
User=git
Group=git
Environment="START_SSH_SERVER=true"
Environment="SSH_PORT=2222"
PIDFile=/var/run/gitea.pid
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/opt/GIT/gitea/gitea web
WorkingDirectory=/opt/GIT/gitea
KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=2
StartLimitBurst=3
TasksMax=infinity

[Install]
WantedBy=multi-user.target

Enter fullscreen mode Exit fullscreen mode

Here /opt/GIT/gitea/gitea is just a symlink to actual binary , it was gitea-1.25.5-linux-amd64 now it is gitea -> forgejo-14.0.3-linux-amd64.

  • Stop gitea: systemctl stop git.service,
  • Delete soft link: rm /opt/GIT/gitea/gitea
  • Make new link: cd /opt/GIT/gitea/ && ln -s forgejo-14.0.3-linux-amd64 gitea
  • Edit database with following query: UPDATE version SET version=301
  • Start forgejo: systemctl start git.service

Forgejo starts the standard DB migrate/upgrade procedure, 'thinking' that it's upgrading from supported version.

After few seconds Forgejo was up and running as it should, with fully migrated projects, tasks and everything that was in Gitea instance.