yii-starter-kit / yii2-starter-kit

Yii2 Starter Kit
http://yii2-starter-kit.terentev.net
Other
1.42k stars 648 forks source link

Composer script "docker:build" fails on Windows #743

Open FantomX1 opened 4 years ago

FantomX1 commented 4 years ago
'cp' is not recognized as an internal or external command,
operable program or batch file.
Script cp .env.dist .env handling the build:env event returned with error code 1
Script @build:env was called via docker:build

it is because normally the command cp is not available at Ms Windows operation system, i wonder if this should be somehow specially handled for different operating systems but as a temporal workaround at windows, one has to have installed some linux tools, cli tools or change the scripts->build:env to contain the copy command instead of the cp command

XzAeRo commented 4 years ago

Currently we have no plans to include direct windows support for the composer/docker scripts. We are open for pull request though.