Browse Source

finish steps for installation

pull/1/head
Craig Stewart 3 years ago
parent
commit
b3486e85fd
  1. 7
      guides/building-a-git-repo/installgitea.html

7
guides/building-a-git-repo/installgitea.html

@ -64,7 +64,9 @@ sudo chown root:root gitea
sudo mv gitea /usr/local/bin/
sudo chmod +x /usr/local/bin/gitea
sudo -u git /usr/local/bin/gitea web -c /etc/gitea/app.ini</pre>
<p>At this point you should be able to visit your git domain in a web browser, https://git.example.com in this guide, and configure gitea.
<p>At this point you should be able to visit your git domain in a web browser, https://git.example.com in this guide, and configure gitea through the installation page. Once done the gitea process will stop, and we need to make the config secure</p>
<pre>sudo chmod 750 /etc/gitea
sudo chmod 644 /etc/gitea/app.ini
cat << EOF | sudo tee -a /etc/systemd/system/gitea.service > /dev/null
[Unit]
Description=Gitea (Git with a cup of tea)
@ -99,9 +101,8 @@ Environment=USER=git HOME=/var/lib/gitea GITEA_WORK_DIR=/var/lib/gitea
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl enable gitea
sudo systemctl start gitea
sudo systemctl start gitea</pre>
<p style="text-align:center;"><a href="/guides/building-a-git-repo/installdb.html" title="Installing a Database">Installing a Database</a>|<a href="/guides/building-a-git-repo/" title="Building A git Repository Server">Main Page</a>|<a href="/guides/building-a-git-repo/finalising.html" title="Finalising Everything">Finalising Everything</a></p>
</div>
</div>

Loading…
Cancel
Save