Setting up Forgejo without root access / running under a single user. I devised these steps to deploy Forgejo on a Dreamhost VPS which only provided an SSH user.
- Create user folders and install forgejo to use these rather than system paths.
- Download forgejo to
~/bin/forgejo
. Make sure~/bin
is in your path (for example by editing your.bashrc
file) - Download the
forgejo.service
script to~/.config/systemd/user
. - Create the following folders:
~/var/lib/forgejo
~/etc/forgejo
- Download forgejo to
- Edit the
forgejo.service
script to run under the current user.- Delete the lines assigning User and Group.