File tree Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Expand file tree Collapse file tree 3 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 1414/demo /_runtime /
1515
1616# Test
17- /.report
18- /test /environment.yaml
17+ /.report
Original file line number Diff line number Diff line change 6565 },
6666 "scripts" : {
6767 "post-create-project-cmd" : [
68- " php script/Install.php" ,
68+ " php script/Install.php 0.0.* " ,
6969 " composer update"
7070 ],
7171 "environment" : [
Original file line number Diff line number Diff line change @@ -74,21 +74,7 @@ public static function start()
7474 // Copy
7575 copy ('application/config/environment.example.yaml ' , 'application/config/environment.yaml ' );
7676 // Composer
77- $ composerLockFile = 'composer.lock ' ;
78- $ composer = file_get_contents ($ composerLockFile );
79- $ composer = json_decode ($ composer , true );
80- $ package = isset ($ composer ['packages ' ]) ? $ composer ['packages ' ] : array ();
81- $ version = '' ;
82- foreach ($ package as $ value ) {
83- if (strtolower ($ value ['name ' ]) == 'codemommy/webphp ' ) {
84- $ version = $ value ['version ' ];
85- }
86- }
87- $ versionComposer = '* ' ;
88- if (!empty ($ version )) {
89- $ version = explode ('. ' , $ version );
90- $ versionComposer = sprintf ('%s.%s.* ' , $ version [0 ], $ version [1 ]);
91- }
77+ $ versionComposer = isset ($ _SERVER ['argv ' ][1 ]) ? $ _SERVER ['argv ' ][1 ] : '* ' ;
9278 $ data = array (
9379 'require ' => array (
9480 'codemommy/webphp ' => $ versionComposer
You can’t perform that action at this time.
0 commit comments