mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
27 lines
695 B
PHP
27 lines
695 B
PHP
<?php
|
|
/*
|
|
// change the following paths if necessary
|
|
$yiic=dirname(__FILE__).'/vendors/yii/yiic.php';
|
|
$config=dirname(__FILE__).'/config/console.php';
|
|
|
|
require_once($yiic);
|
|
*/
|
|
|
|
|
|
$config=dirname(__FILE__).'/config/console.php';
|
|
|
|
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
|
|
defined('YII_DEBUG') or define('YII_DEBUG',true);
|
|
|
|
require_once(dirname(__FILE__).'/vendors/yii/yii.php');
|
|
require_once(dirname(__FILE__).'/components/HConsoleApplication.php');
|
|
|
|
$app=Yii::createApplication('HConsoleApplication', $config);
|
|
|
|
Yii::setPathOfAlias('webroot', realpath(dirname(__FILE__). '/..'));
|
|
|
|
// Add Yii Commands
|
|
$app->commandRunner->addCommands(YII_PATH.'/cli/commands');
|
|
|
|
$app->run();
|