How to install gitea? #370

Closed
opened 2025-11-02 03:20:32 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @DiFinedZ on GitHub (Feb 20, 2017).

System: ubuntu 16.04

Currently run by a ./gitea web

How to automate the startup process?

Originally created by @DiFinedZ on GitHub (Feb 20, 2017). System: ubuntu 16.04 Currently run by a ./gitea web How to automate the startup process?
GiteaMirror added the issue/not-a-bug label 2025-11-02 03:20:32 -06:00
Author
Owner

@plessbd commented on GitHub (Feb 20, 2017):

How do I run Gitea at startup with Systemd?

There’s a systemd service template file in the Gitea GitHub repository https://github.com/go-gitea/gitea/blob/master/scripts/systemd/gitea.service

Update User, Group, WorkingDirectory, ExecStart, and Environment with values appropriate to your Gitea installation.
(Optional) If you would like to use Gitea with MySQL/MariaDB, PostgreSQL, Redis, or memcached then uncomment the appropriate After lines.

Save your modified service file at /etc/systemd/system/gitea.service, enable it with sudo systemctl enable gitea, and start it with sudo systemctl start gitea.

You can check the status of the Gitea service with sudo systemctl status gitea -l, or display the journal entries with sudo journalctl -b -u gitea.

*shamelessly pulled from https://gogs.io/docs/intro/faqs *

@plessbd commented on GitHub (Feb 20, 2017): How do I run Gitea at startup with Systemd? There’s a systemd service template file in the Gitea GitHub repository https://github.com/go-gitea/gitea/blob/master/scripts/systemd/gitea.service Update User, Group, WorkingDirectory, ExecStart, and Environment with values appropriate to your Gitea installation. (Optional) If you would like to use Gitea with MySQL/MariaDB, PostgreSQL, Redis, or memcached then uncomment the appropriate After lines. Save your modified service file at /etc/systemd/system/gitea.service, enable it with sudo systemctl enable gitea, and start it with sudo systemctl start gitea. You can check the status of the Gitea service with sudo systemctl status gitea -l, or display the journal entries with sudo journalctl -b -u gitea. *shamelessly pulled from https://gogs.io/docs/intro/faqs *
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#370