aboutsummaryrefslogtreecommitdiff
path: root/data/config.default.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-07-07 08:50:08 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-07-07 08:50:08 +0200
commitf92fbaf636d620a0092fff8b715be9a493547b4f (patch)
treedb943ec6699aa954e3c65ea01738b91f2ecb3634 /data/config.default.php
parent5e590903694ccec284fa5ea957f957c2209bbb2a (diff)
downloadphorkie-f92fbaf636d620a0092fff8b715be9a493547b4f.tar.gz
phorkie-f92fbaf636d620a0092fff8b715be9a493547b4f.zip
automatically configure git paths (dir + public clone url)
Diffstat (limited to 'data/config.default.php')
-rw-r--r--data/config.default.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/config.default.php b/data/config.default.php
index 2e588fa..5b56fc7 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -2,15 +2,21 @@
$pharFile = \Phar::running();
if ($pharFile == '') {
$phorkieDir = __DIR__ . '/../';
+ $wwwDir = $phorkieDir . 'www/';
} else {
//remove phar:// from the path
$phorkieDir = dirname(substr($pharFile, 7)) . '/';
+ $wwwDir = $phorkieDir;
}
$GLOBALS['phorkie']['cfg'] = array(
'debug' => false,
- 'gitdir' => $phorkieDir . 'repos/git/',
- 'workdir' => $phorkieDir . 'repos/work/',
+ 'git' => array(
+ 'public' => '%BASEURL%' . 'repos/git/',
+ 'private' => null,
+ ),
+ 'gitdir' => $wwwDir . 'repos/git/',
+ 'workdir' => $wwwDir . 'repos/work/',
'tpl' => __DIR__ . '/templates/',
'baseurl' => null,
'avatars' => true,