This tutorial was written based on Ubuntu 14.04 with VestaCP.
For this example, I created user cooler, domain repo.my.cooler and database cooler_repo on VestaCP panel.
To install Gogs, you will need to use user with admin rights, on my tutorial I'm using default admin user from VestaCP.
1 - install supervisor.