git.cweiske.de
/
phorkie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
warn about non-configured search adapter during indexing
[phorkie.git]
/
data
/
config.default.php
diff --git
a/data/config.default.php
b/data/config.default.php
index 2beb3549568693a9d4634cef92af31ea9c163074..5b56fc7e16d87de96bdd0c60102c4276c03cc30f 100644
(file)
--- a/
data/config.default.php
+++ b/
data/config.default.php
@@
-1,10
+1,24
@@
<?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/',
'tpl' => __DIR__ . '/templates/',
- 'baseurl' =>
'/'
,
+ 'baseurl' =>
null
,
'avatars' => true,
'css' => '',
'iconpng' => '',//phorkie browser icon (favicon)
'avatars' => true,
'css' => '',
'iconpng' => '',//phorkie browser icon (favicon)