Getting Started using Laravel Sail for Docker on WSL 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 24

  • @Beachcasts
    @Beachcasts  3 ปีที่แล้ว

    For a detailed video on installing WSL 2 (Windows Subsystem for Linux) see: th-cam.com/video/X3bPWl9Z2D0/w-d-xo.html

    • @Beachcasts
      @Beachcasts  3 ปีที่แล้ว

      Or to see how to set up Laravel on WSL 2, see: th-cam.com/video/_H1iKXksjF0/w-d-xo.html

  • @pakuize
    @pakuize 2 ปีที่แล้ว

    I recently came back to laravel after having worked in another field for a few years now homestead was just not working on my windows machine anymore and never having used Docker before you were my little lifeline here thanks for a very well explained step by step here was very helpful.

    • @pakuize
      @pakuize 2 ปีที่แล้ว

      Only minor thing I had to do was the alias was nice to have however after shutting down and starting up again I had the set the alias again so ended up going into ~/.bashrc and manuelly adding it that seems to have fixed it for me

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      Thanks for sharing!

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      That's interesting. Haven't run into that. Thanks for posting for future watchers.

  • @LifeOfCraig
    @LifeOfCraig 9 หลายเดือนก่อน

    This was a fantastic guide, thanks for this and all your WSL content.

  • @MartinSmithoektoe
    @MartinSmithoektoe 2 ปีที่แล้ว

    Hours of struggling with php version. Didn't know had to prepend sail. Thanks

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      So happy it helped.

  • @TheGeo60
    @TheGeo60 2 ปีที่แล้ว +3

    You help a lot WSL users

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      Happy folks are finding it useful. Thanks for watching.

  • @Matheus708
    @Matheus708 2 ปีที่แล้ว +1

    Thanks for this video!

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      You're welcome. Thanks for watching.

  • @karlson2804
    @karlson2804 7 หลายเดือนก่อน

    Hi, how can I run via PHPStorm terminal symbolic link folder on Ubuntu and open files in PHPStorm with the possibility of running the sail command in the terminal after?
    (wsl2) ~/Projects > (windows) ~/Projects

  • @gamekonet
    @gamekonet 2 ปีที่แล้ว

    Thanks this is reallly helpful, what if wanted to use postgres rather than MySQL how it can be configured?

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      Glad you found it helpful. You can likely change the DB preference in the Dockerfile.

  • @muhammadsalah3981
    @muhammadsalah3981 3 ปีที่แล้ว +1

    thanks a lot

    • @Beachcasts
      @Beachcasts  3 ปีที่แล้ว

      You are most welcome

  • @scotle9901
    @scotle9901 3 ปีที่แล้ว

    I use wsl2 run docker-compose but still slow more then linux distro. I decided back to linux

    • @Beachcasts
      @Beachcasts  3 ปีที่แล้ว

      Depending on the project, and the amount of data shared between the container(or VM) and host, I agree it can be too slow. And it also depends on how many times I need to refresh the browser, while developing.

  • @corbeille1801
    @corbeille1801 2 ปีที่แล้ว

    the worst tutorial ever, saying you have 2 projects already in folder is not what we expect, do everything from scratch, and create them in video on the fly

    • @Beachcasts
      @Beachcasts  2 ปีที่แล้ว

      I'm sorry that approach confused you. Having them pre-installed cut the video by 10 boring minutes. I was attempting to show the difference between Laravel apps with and without Sail installed, and I showed how to install Sail when not already installed. I hope that helps. Good luck with your learning.

    • @tonykoehn7241
      @tonykoehn7241 2 ปีที่แล้ว

      I have been struggling to get docker and laravel working as well as understand everything. Even though some think this video is not detail enough there were enough things said that helped me out and was able to make more sense of everything. At the end of the day I was able to create a project and get docker up and running and the website responds in my local browser. Thanks.

    • @admbb0
      @admbb0 ปีที่แล้ว +1

      Not the worst tutorial ever, but not very helpful for those of us who need to install Laravel Sail into an existing project. How did you possibly get Laravel Sail installed into your existing project? It requires you to have both PHP and COMPOSER installed in WSL2. That's an important thing to cover. Also, it requires all the PHP extensions that Laravel requires because COMPOSER will fail to install Sail unless all the extensions are present. If I'm going to have to to make WSL2 (Ubuntu) a complete Laravel development environment just to get to the point where I can install Sail, what is the point of Laravel Sail?