Solucionado error de path en hedera-web-php

This commit is contained in:
Juan Ferrer Toribio 2016-10-28 09:47:49 +02:00
parent 61661a26a0
commit cdde9362c9
3 changed files with 6 additions and 3 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.382-deb8) stable; urgency=low
hedera-web (1.383-deb8) stable; urgency=low
* Initial Release.

View File

@ -10,4 +10,4 @@ const _DEV_MODE = TRUE;
const _CONFIG_DIR = __DIR__.'/../../.config';
const _LOG_DIR = '/tmp';
const _DATA_DIR = '/tmp';
const _HEDERA_DIR = __DIR__;

View File

@ -4,6 +4,9 @@
@include_once __DIR__.'/env.php';
require_once 'vn-autoload.php';
$cliApp = new Vn\Lib\CliApp ('hedera-web', __DIR__.'/rest');
if (!defined ('_HEDERA_DIR'))
define ('_HEDERA_DIR', '/usr/share/hedera-web');
$cliApp = new Vn\Lib\CliApp ('hedera-web', _HEDERA_DIR.'/rest');
$cliApp->run ();