From: Christian Weiske Date: Wed, 8 Jul 2015 19:44:08 +0000 (+0200) Subject: add cachedir setting to dist and default config file X-Git-Tag: v0.6.0~4 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/51ea5529a3de85fb17518898892498e1337a88b7 add cachedir setting to dist and default config file --- diff --git a/data/config.default.php b/data/config.default.php index c062d02..253650d 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -15,7 +15,7 @@ $GLOBALS['phorkie']['cfg'] = array( 'public' => '%BASEURL%' . 'repos/git/', 'private' => null, ), - 'cachedir' => __DIR__ . '/cache/', + 'cachedir' => $phorkieDir . 'cache/', 'gitdir' => $wwwDir . 'repos/git/', 'workdir' => $wwwDir . 'repos/work/', 'tpl' => __DIR__ . '/templates/', diff --git a/data/config.php.dist b/data/config.php.dist index 81ffdbe..f1b8704 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -2,6 +2,7 @@ //$GLOBALS['phorkie']['cfg']['baseurl'] = '/'; //$GLOBALS['phorkie']['cfg']['gitdir'] = '/var/cache/git/paste/git/'; //$GLOBALS['phorkie']['cfg']['workdir'] = '/var/cache/git/paste/work/'; +//$GLOBALS['phorkie']['cfg']['cachedir'] = '/var/cache/phorkie/'; //$GLOBALS['phorkie']['cfg']['git']['public'] = 'git://bogo/git/paste/'; //$GLOBALS['phorkie']['cfg']['git']['private'] = 'ssh://git@bogo:paste/'; //$GLOBALS['phorkie']['cfg']['elasticsearch'] = 'http://localhost:9200/phorkie/';