3 ms·
My primary concern is actually that you have to store code in a directory that is publicly served by default. I haven't looked into the PHP world lately, but I
by notpushkin 2y ago
My primary concern is actually that you have to store code in a directory that is publicly served by default. I haven't looked into the PHP world lately, but I have assumed that by now most PHP frameworks would store code (and associated configs etc) outside the document root, like the Laravel approach you mentioned.
- francislavoie 2y agoYeah, most modern PHP frameworks use a public/ directory which has the index.php entrypoint in it, and any static assets are served from in there (JS/CSS/images) if necessary.
- c0wb0yc0d3r 2y agoI see what you mean. I interpreted the getting started one-liner differently. I took it to mean that the docker container is serving from `/app/public` and the user needs to mount their files accordingly.