-
-
Notifications
You must be signed in to change notification settings - Fork 119
Symfony requires a git repository to run docker commands #550
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
Comments
#546 might be the occasion (or lay the ground) to fix this. wdyt? |
symfony-cli recently (f11e67e) switched to guessing the project directory based on the presence of a I recently created #551 to determine the project directory based on the presence of |
@alexandresalome I guess I am against I will update my PR code in #551 accordingly. |
I confirm that the problem was fixed in 5.10.6, the reproducer does not reproduce anymore and my project is also fixed! Many thanks! |
When I run
symfony console
, Symfony CLI does not detect my docker compose containers. The error happens when there is no.git
directory in the Symfony project directory.How to reproduce
This command returns an error because there is no git directory.
Actual output
Expected result
I would expect it to try connecting to a different server & port, according to
DATABASE_URL
.When I run
symfony serve
, the profiler toolbar indicates no database/mailpit.symfony run env
shows no special environment variable for the database.Workaround
I workaround by running
git init
before any symfony command:Final note
Don't forget to cleanup:
The text was updated successfully, but these errors were encountered: