Provides an API to update Git repositories and easily manage them.
- 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.
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
- 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:
- The first for the API
The URLserver.tld/api
points to thesc/api
server file - The second for the management page
The URLserver.tld/sourcecontrol
points to thesc/manage
server file and have an authentification
With this configuration only the two web folders can be reached throug your web server.