-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Using Symfony Docker with an existing project but routes missing #226
Comments
I also tried to build the app with this template from API platform doc https://github.com/api-platform/api-platform |
Update: It's also works on |
What did you mean ? "APP_ENV: prod" have the same result but not with "APP_ENV: dev" ? |
Here some ideas, that you can check:
|
Thanks for your help @michael-schaefer-eu For option 2: I tried to run But I found something with command But when I run I also tried to change But still got the same response. |
I have same issue too, pls help us ! |
Hi, I have a few questions to determine what is happening
Thanks |
@laryjulien Thanks for your help.
|
I created this demo project with simple setup to check about this issue and I got the same response. You can check my repository in this link https://github.com/medusiora/symdony-docker In my poject(real project) I have about ~60-70 Entities similar with this repository but more complex in term of relations and events I used Windows 10 and Docker Desktop to run the application. Thanks. |
Thanks for providing a reproducer, I will check it. |
Hi again, I get all the 70 API endpoints when building and running your demo project. I will try to get a PC with Windows and Docker Desktop |
I tried to run the app from different 4 machine in Windows OS but doesn't work for all of them. The routes are still missing (in case we have about 70 entries or more). So I tried to create new one from template (https://github.com/dunglas/symfony-docker) in MAC and just copy the entites from previous project (that created from Windows) - It's works fine, we see all 70 entities. The project that was created on Windows 10:
The project that was created on MAC M1:
Nothing different in them of code between 2 repo. |
Seems related to filesystem/volumes handling with Windows. You should try to launch project without binding volumes (the volumes part of docker compose) and see if some routes are still missing. Edit: Maybe, you can first try by removing the rw,cached options. See if it works, then removing the whole |
So it seems really related to volumes.
To be cleaner, delete the var folder on windows before relaunching your containers |
Thanks for your explanation! And relaunching, I got the same response. (some APIs still missing) I also try to run this project(https://github.com/medusiora/symfony-docker-2) on Pop!_OS 21 - It's working properly. |
Thanks @laryjulien for the help :) |
Hi, I'm using Symfony with API Platform and I trying to add this docker stack on my existing project, following https://github.com/dunglas/symfony-docker/blob/main/docs/existing-project.md
In Dockerfile, I install some PHP extensions:
Others is the same as default Dockerfile https://github.com/dunglas/symfony-docker/blob/main/Dockerfile
After I build the Docker images
And start the project
Some API(s) are missing!
So I tried to run the project with symfony command, All APIs are show up:
Then I trying to run the project with docker-compose again and try to remove some entities:
The rest APIs show up (without removed entities)
Do you have any idea?, Thanks
In docker-compose.yml:
In docker-compose.override.yml:
The text was updated successfully, but these errors were encountered: