guillaumebriday / laravel-blog

Laravel 10.0 blog application with Hotwire, Horizon, Telescope, Sanctum, Breeze and Pusher
MIT License
1.72k stars 559 forks source link

Change the docker config to optimize for development on Mac machines. #110

Closed khoinv closed 4 years ago

khoinv commented 4 years ago
guillaumebriday commented 4 years ago

Thanks for the PR!

But I don't want xdebug by default in this project. Lots of people don't use it myself included. Why do you think delegated is better ? The performance are pretty much the same but with less guarantee right ?

Imo a container should be responsible for only one thing. PHP and node should be splitted.

khoinv commented 4 years ago

I know it. So I created a new file and named it *.mac.dev. On my computer and testing a month ago, I got speed up 3x times when use delegated

When use delegated that less guarantee, so me and my colleague got the bundled js files isn't applied when he and I change the js files in sometimes.

Remember it is used only for developer purposes. I want to share how i sloved it in my dev env.

guillaumebriday commented 4 years ago

I saw yep.

I will check for the delegated option. Last time I tried it was not significant : https://guillaumebriday.fr/docker-ameliorer-les-performances-avec-le-cache

Thanks !