build 547 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env php
<?php
/**
 * build script file.
 *
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

// fcgi doesn't have STDIN defined by default
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));

14 15
define('YII_DEBUG', true);

Qiang Xue committed
16
require(__DIR__ . '/../framework/Yii.php');
Qiang Xue committed
17

Alexander Makarov committed
18
$application = new yii\console\Application([
Qiang Xue committed
19 20 21
	'id' => 'yii-build',
	'basePath' => __DIR__,
	'controllerNamespace' => 'yii\build\controllers',
Alexander Makarov committed
22
]);
Qiang Xue committed
23
$application->run();