Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP script are not PHP interpreted on Windows #5

Open
4x10m opened this issue Jun 22, 2018 · 0 comments
Open

PHP script are not PHP interpreted on Windows #5

4x10m opened this issue Jun 22, 2018 · 0 comments

Comments

@4x10m
Copy link
Owner

4x10m commented Jun 22, 2018

In the Makefile, we use the php container to create and configure the database.
After some test, it seems that this container fail to interpret the shebang and throw idiot error as ': No such link or directory on Windows.

After some test, we are sure that the problem is that the shebang is not interpreted and we hot fixed it by explicitly executing it with php command.

docker-compose run php php bin/console doctrine:query:sql 'CREATE EXTENSION IF NOT EXISTS postgis' --env=dev

Related to coopcycle#388

https://willi.am/blog/2016/08/11/docker-for-windows-dealing-with-windows-line-endings/
https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf

@4x10m 4x10m mentioned this issue Jun 22, 2018
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant