Open MahnazJ opened 2 years ago
Hi @MahnazJ
Thanks and nice to see that you want to use my package!
You don't need to use php artisan serve
, because you are using the Docker environment / webserver and not your built in webserver.
If you follow the wizard and install Laravel, the installation will start the Docker containers (webserver) and ask if you want to open the new Laravel application in your browser (or you can manually enter the address, http://localhost:poortNumber) thats all :)
If you have any questions, feel free to let me know.
Hi,
So I've started all over again. I am running on Linux Ubuntu btw. When I want to visit the page through localhost:portnumber, it states the following: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
After refreshing the page I get: This site can’t be reached localhost refused to connect. Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED
Have you ever countered a similar issue?
I don't have any problems, but I don't use Linux. Maybe this topic can help you? https://stackoverflow.com/questions/50552970/laravel-docker-the-stream-or-file-var-www-html-storage-logs-laravel-log-co
@MahnazJ
I switched to WSL2 on Docker. Then I also had some permissions issues and created a user in the Docker file to fix this. https://github.com/mvd81/docker-laravel/commit/094110a5efa2930f42ea140701201bfd7d6701bd
Maybe this will fix your permission error?
Appreciate it a lot! This saved my life in a different Docker-PHP project
@MahnazJ nice, good to hear! 😀
Hi,
First of all thank you for publicizing your repo.
I have cloned the repo, but I am experiencing some issues. Disclaimer: I am fairly new to Docker. I would like to use the artisan command, but I get "/usr/local/bin/docker-php-entrypoint: 9: exec: artisan: not found" when I use the following: docker-compose run php artisan serve. What would you recommend doing in this case?