Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
4c1378cb
Commit
4c1378cb
authored
May 24, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted paths, added install.bat
parent
0411f09a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
install
apps/advanced/install
+3
-3
install.bat
apps/advanced/install.bat
+20
-0
No files found.
apps/advanced/install
View file @
4c1378cb
<?php
<?php
$root
=
str_replace
(
'\\'
,
'/'
,
__DIR__
);
$root
=
str_replace
(
'\\'
,
'/'
,
__DIR__
);
$envs
=
require
(
"
$root
/
install
/index.php"
);
$envs
=
require
(
"
$root
/
environments
/index.php"
);
$envNames
=
array_keys
(
$envs
);
$envNames
=
array_keys
(
$envs
);
echo
"Yii Application Installation Tool v1.0
\n\n
"
;
echo
"Yii Application Installation Tool v1.0
\n\n
"
;
...
@@ -24,10 +24,10 @@ if (strncasecmp($answer, 'y', 1)) {
...
@@ -24,10 +24,10 @@ if (strncasecmp($answer, 'y', 1)) {
}
}
echo
"
\n
Start installation ...
\n\n
"
;
echo
"
\n
Start installation ...
\n\n
"
;
$files
=
getFileList
(
"
$root
/
install
/
{
$env
[
'path'
]
}
"
);
$files
=
getFileList
(
"
$root
/
environments
/
{
$env
[
'path'
]
}
"
);
$all
=
false
;
$all
=
false
;
foreach
(
$files
as
$file
)
{
foreach
(
$files
as
$file
)
{
if
(
!
copyFile
(
$root
,
"
install
/
{
$env
[
'path'
]
}
/
$file
"
,
$file
,
$all
))
{
if
(
!
copyFile
(
$root
,
"
environments
/
{
$env
[
'path'
]
}
/
$file
"
,
$file
,
$all
))
{
break
;
break
;
}
}
}
}
...
...
apps/advanced/install.bat
0 → 100644
View file @
4c1378cb
@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 © 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment