git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
automatically configure git paths (dir + public clone url)
[phorkie.git]
/
data
/
config.default.php
diff --git
a/data/config.default.php
b/data/config.default.php
index eb98efd7076a12d5fe45736cb1bc3b5216d20c0f..5b56fc7e16d87de96bdd0c60102c4276c03cc30f 100644
(file)
--- a/
data/config.default.php
+++ b/
data/config.default.php
@@
-1,8
+1,22
@@
<?php
<?php
+$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,
$GLOBALS['phorkie']['cfg'] = array(
'debug' => false,
- 'gitdir' => __DIR__ . '/../repos/git/',
- 'workdir' => __DIR__ . '/../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,
'tpl' => __DIR__ . '/templates/',
'baseurl' => null,
'avatars' => true,
@@
-12,7
+26,6
@@
$GLOBALS['phorkie']['cfg'] = array(
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
- 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
'index' => 'new',//"new" or "list"
'perPage' => 10,
'defaultListPage' => 'last',//a number or "last"
'index' => 'new',//"new" or "list"
'perPage' => 10,
'defaultListPage' => 'last',//a number or "last"