Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nixes/d07807cf63d92a9bee4a to your computer and use it in GitHub Desktop.
Save Nixes/d07807cf63d92a9bee4a to your computer and use it in GitHub Desktop.
Easy SQLite Gogs Installation for Ubuntu and Debian

This is a tutorial that describes how to set up a private git (github) server for a smallish development team.

  • Download GOGS binary Zip File
  • Unzip to folder
  • Run: sudo apt-get install sqlite3
  • Run GOGS: ./gogs web
  • Goto install page: http://hostname:3000/install
  • Set to use sqlite3 as the database backend
  • Set USER to run as, preferrably not root if it will be internet facing.
  • Set Database file location (Make sure database file location is set to a folder where that same user has write permissions)
  • Do the same for the repository folder location (which must also be in a place where the user has write permissions)
  • Should now be ready to go

Note: First user to register gets administrator priviledges, so you should probably do that now

@mimoccc
Copy link

mimoccc commented Dec 19, 2017

there must be first availability to select sqlite as a backend, does not work even after downloading tag sqlite.
love this kinda tutorials...
easy & simple, one of the less painfull instalations...

just let you know:

  • there is no mysql anymore, just maria god db
  • mariadb needs to understand that strings in db will be not even utf8, user needs to configure it manually, unusable
  • sqlite not in combo box, no way to use it without fixing errors inside go language, and source codes (never used language - for me)
  • msql, on linux? are you kidding???
  • trying postgresql yet, after spending 12 hours to install this good looking web interface and if this will also not work, project is for nothing when simple user comes to install it

best luck with this no painfull, easy 5 minute installing software
good that i am i experienced user of linux otherwise i will not try to install it 38 times a day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment