build 625 Bytes
Newer Older
Qiang Xue committed
1 2 3 4 5 6 7 8 9 10
#!/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/
 */

11
// fcgi doesn't have STDIN and STDOUT defined by default
Qiang Xue committed
12
defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
13
defined('STDOUT') or define('STDOUT', fopen('php://stdout', 'w'));
Qiang Xue committed
14

15 16
define('YII_DEBUG', true);

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

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