Commit 4c1378cb by Alexander Makarov

Adjusted paths, added install.bat

parent 0411f09a
<?php
$root = str_replace('\\', '/', __DIR__);
$envs = require("$root/install/index.php");
$envs = require("$root/environments/index.php");
$envNames = array_keys($envs);
echo "Yii Application Installation Tool v1.0\n\n";
......@@ -24,10 +24,10 @@ if (strncasecmp($answer, 'y', 1)) {
}
echo "\n Start installation ...\n\n";
$files = getFileList("$root/install/{$env['path']}");
$files = getFileList("$root/environments/{$env['path']}");
$all = false;
foreach ($files as $file) {
if (!copyFile($root, "install/{$env['path']}/$file", $file, $all)) {
if (!copyFile($root, "environments/{$env['path']}/$file", $file, $all)) {
break;
}
}
......
@echo off
rem -------------------------------------------------------------
rem Yii command line install script for Windows.
rem
rem @author Qiang Xue <qiang.xue@gmail.com>
rem @link http://www.yiiframework.com/
rem @copyright Copyright &copy; 2012 Yii Software LLC
rem @license http://www.yiiframework.com/license/
rem -------------------------------------------------------------
@setlocal
set YII_PATH=%~dp0
if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exe
"%PHP_COMMAND%" "%YII_PATH%install" %*
@endlocal
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment