Api-platform: Question: 404 not found on assets

Created on 11 Jun 2019  路  3Comments  路  Source: api-platform/api-platform

Hello,

I've an issue for loading the assets, my browser retrieve 404 not found:

image

Yet the files are in the public folder

image

I'm working on a docker-compose stack with php-fpm and nginx, there is my nginx conf for the app:

image

I'm stuck on it since 2 hours. it worked perfectly few weeks ago.

Any idea ?

Most helpful comment

are you sure that the swaggerui has been copied as well?

All 3 comments

I have the exact same issue, did you find the solution ?
I'm using Nginx on docker
Thanks !

are you sure that the swaggerui has been copied as well?

I found why and this is exactly this !
The docker run composer install after copying the files to the nginx container so all bundle assets were missing.
I ended up by sharing a volume for public ressources

Was this page helpful?
0 / 5 - 0 ratings