/SourceControl

Provides an API to update Git repositories and easily manage them through a web server

Primary LanguagePHP

Logo of Source Control SourceControl

Provides an API to update Git repositories and easily manage them.

Screenshot of Source Control


Installation

Requirements

  • The Apache configuration files written on .htaccess are for Apache 2.4.
  • PHP 5 >= 5.5.0 or PHP 7 is required (due to the use of array_column).
  • The application must have right to write in the data folder.
    (after installing, if no repository are listed, it's because the app couldn't save the data)
  • If you want to send email, be sure your server is well configured.

Source & Setup

The simplest way is to clone the current repository.

git clone https://github.com/Devenet/SourceControl sc

Otherwise you can download the last version on the releases page, and unzip it as a sc folder into your web server root folder.

Then, in the folder data copy the config.default.php file into config.php.

cp sc/data/config.default.php sc/data/config.php

Application

  • The API is available under sc/api and is publicly accessible.
  • The management page is available under sc/manage and is by default publicly accessible.
    We assume that you have this URL under a restrictive area, for example with an Apache authentification.

We recommanded to you to have two virtualhosts or two distinc configuration files:

  1. The first for the API
    The URL server.tld/api points to the sc/api server file
  2. The second for the management page
    The URL server.tld/sourcecontrol points to the sc/manage server file and have an authentification

With this configuration only the two web folders can be reached throug your web server.