No description
Find a file
2016-11-06 20:00:37 +01:00
conf Fix post-receive hook 2016-11-06 13:29:42 +01:00
scripts Fix backup/restore, safer remove 2016-11-06 19:48:23 +01:00
.gitignore Initial commit 2016-10-23 17:55:08 +02:00
LICENSE Initial commit 2016-10-23 17:55:08 +02:00
manifest.json Allow to choose branch and directory to deploy #2 #4 2016-11-05 23:01:31 +01:00
README.md Set forum thread url 2016-11-06 20:00:37 +01:00

Gogs web hosting for YunoHost

This YunoHost App take an existing Gogs repository with a static site and serve it with nginx. At each commit the site will be updated by a git hook.

Gogs is a self-hosted Git service written in Go. Alternative to Github.

Requirements

  • A functional instance of YunoHost
  • Gogs package must be installed
  • The repository that you want to serve must exist in Gogs

Installation

From the command-line:

sudo yunohost app install -l MySite https://github.com/YunoHost-Apps/gogs_webhost_ynh

Upgrade

From the command-line:

sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/gogs_webhost_ynh gogswebhost

Info

  • YunoHost forum thread
  • The post-receive hook of your Gogs repository will be overwritten at install and at each upgrade.
  • You can't use the app to host 2 time the same repository (because of the previous point).
  • There is no check that the branch and the directory you wish to serve exist in your repo, you must ensure that they exist before installing the app.
  • Your site must have an index.html.
  • If your site contain absolute links (like href=""/asset/something.js") this will only work on a domain root.

License

This package is published under the MIT License.