-
Notifications
You must be signed in to change notification settings - Fork 472
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 ADD instead of volumes - Assets not found #46
Comments
Hi! I'll dig in this direction: http://symfony.com/doc/current/setup/web_server_configuration.html Stupid question, but why you don't want volume? It is for production mode? |
Hi @maxpou. Thank you. |
The Api Platform (https://github.com/api-platform/api-platform) has a great docker setup with nginx and php fpm that can be used as reference. |
Hi, I have the same problem. When I use ADD or COPY instead of volumes (for production images) the assets return 404. Have you found a solution? Thanks. |
Hi @Miggianox94 , take a look at https://github.com/renan-taranto/symfony-dddocker. It may help you somehow. |
Hi @renan-taranto i am having also the same issue. |
@Khaldoun488 I ended up not using this project boilerplate. Besides the resources I've already mentioned, this may help also: https://symfony.com/doc/current/setup/web_server_configuration.html#nginx |
thanks |
@renan-taranto are you using ECS for production ? |
Hi.
I am trying to ADD the application files to the PHP container instead of mounting them.
The application files are added but while accessing it on the prod environment assets can not be found even after dumping them, fixing permissions errors and clearing the cache. Every request to an asset returns a 404 (Not Found), although they are in the container. It works fine in the dev environment tough. Maybe it is related to the nginx configurations but I don't really know.
So, what changes do I have to do in order to ADD instead of mounting volumes?
The text was updated successfully, but these errors were encountered: