Why are you running a php -S when you are running a fully fletched nginx in laradock?
Feb 13, 2024
4
Level 1
site unreachable
"I created a new Lumen project with Laradock on Windows 11, but when I try to run the following command:"
php -S localhost:8000 -t public
PS C:\repos\MicroServicesPHP\laradock> docker-compose up -d nginx mysql phpmyadmin redis workspace [+] Running 7/10
- Network laradock_backend Created 3.6s
- Network laradock_frontend Created 3.6s
- Network laradock_default Created 3.5s ✔ Container laradock-redis-1 Started 1.3s ✔ Container laradock-mysql-1 Started 1.1s ✔ Container laradock-docker-in-docker-1 Started 1.2s ✔ Container laradock-phpmyadmin-1 Started 1.9s ✔ Container laradock-workspace-1 Started 2.2s ✔ Container laradock-php-fpm-1 Started 2.5s ✔ Container laradock-nginx-1 Started 3.1s PS C:\repos\MicroServicesPHP\laradock> docker-compose exec workspace bash root@3f3ea9be556c:/var/www# ls laradock LumenAuthorsApi root@3f3ea9be556c:/var/www# cd LumenAuthorsApi/ root@3f3ea9be556c:/var/www/LumenAuthorsApi# php -S localhost:8000 -t public [Tue Feb 13 15:35:49 2024] PHP 8.3.2-1+ubuntu20.04.1+deb.sury.org+1 Development Server (http://localhost:8000) started
but site unreachable
Please or to participate in this conversation.