yiisoft / yii2-docker

Official Docker images suitable for Yii 2.0
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
381 stars 202 forks source link

Error on Windows #167

Closed linuxanton-2469 closed 1 year ago

linuxanton-2469 commented 1 year ago

In php/image-files/dev/usr/local/bin/composer use the following shebang line:

!/usr/bin/env -S bash

Otherwise the installation will break.

schmunk42 commented 1 year ago

Which error do you get?

linuxanton-2469 commented 1 year ago

Hi Schmunk,

/usr/bin/env \rbash not found

Habe mittlerweile herausgefunden, dass es an der automatischen Konvertierung von git liegt.

Lösung: git config --global core.autocrlf input git rm --cached -r . git reset --hard

For repo owners and contributors

If you own a repo or contribute to it, set mandatory LF line endings for .sh files right in the repo by adding the .gitattributes file with the following line:

*.sh text eol=lf

Grüße aus Günzburg Anton