Switching from Xampp to Docker with Laravel Sail

Поделиться
HTML-код
  • Опубликовано: 30 окт 2024

Комментарии • 58

  • @DesignatedCoder
    @DesignatedCoder  2 года назад +3

    I'm switching out my Xampp dev environment to Docker using Laravel Sail. Watch to find out more about my Laravel Sail Dev Environment on a Windows Machine using WSL and Ubuntu on E drive.
    ===================================================
    📓 Video Chapters:
    0:03Xampp Vs. Docker (story time)
    02:58 Introducing Docker
    03:23 Different Laravel Installations
    04:17 Installing Laravel Sail on Existing Project
    08:25 Sail Up
    12:48 Database Migration
    13:44 Beekeeper Studio as the Database
    16:20 Mailhog for Testing Mailables
    17:40 Sail Stop
    18:44 Other Useful Sail/Docker Commands
    ===================================================
    ✔️ Click to subscribe: ruclips.net/channel/UCGRi3eupIN5rOP_tDLxLs2w
    ===================================================
    ✔️ GITHUB: github.com/designatedcoder
    ===================================================
    🎦 Supplemental Videos:
    Learn Web Code: ruclips.net/video/2TKh3aokgec/видео.html
    Maurauderz Gears & Gadgets: ruclips.net/video/AyEw7JsHt9I/видео.html
    ===================================================
    📔 Resource Documents:
    Docker Desktop: www.docker.com/products/docker-desktop
    Stack Exchange Article: superuser.com/questions/1572834/is-there-any-ways-to-install-wsl-on-non-c-drive
    Docker Commands Article: linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/
    Beekeeper Studio: www.beekeeperstudio.io
    ===================================================
    📷 Video images provided by:
    Ashim D’Silva on Unsplash
    unsplash.com/s/photos/chaos?CopyText
    Sebastiaan Chia on Unsplash
    unsplash.com/s/photos/apple-products?CopyText
    Matthew Lancaster on Unsplash
    unsplash.com/s/photos/homestead?CopyText
    Jeff Sheldon on Unsplash
    unsplash.com/s/photos/neat?CopyText
    Matthew Hamilton on Unsplash
    unsplash.com/s/photos/under-construction-page?CopyText
    ===================================================
    #designatedcoder #laravelsail #docker

    • @aryaherro
      @aryaherro 2 года назад +1

      Thanks, great for motivated to learn something new..👍

    • @DesignatedCoder
      @DesignatedCoder  2 года назад

      No worries, R. Arya Herro K. Glad you're enjoying the channel! 😎

  • @mohamedabdelsattar3266
    @mohamedabdelsattar3266 Год назад +2

    The first laravel video with a professional delivery style

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there @mohamedabdelsattar3266. Thanks for watching. Welcome to the channel! 😎

  • @403gtfo
    @403gtfo Год назад +4

    Just spent 2 days converting myself before I see this video.
    Took a lot of work but I finally have it set up nicely.

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Josh. Thanks for watching. Welcome to the channel! 😎 Glad you got it up and running!

  • @mnchabel8402
    @mnchabel8402 8 месяцев назад +1

    I love the video. The way you explain in detail of how you got to the solution is beautiful.

    • @DesignatedCoder
      @DesignatedCoder  8 месяцев назад

      Hey there @mnchabel8402. Thanks for watching. Welcome to the channel! 😎

  • @codewithsusan
    @codewithsusan 2 года назад +2

    Love the simplicity that Laravel Sail adds. 👍

    • @DesignatedCoder
      @DesignatedCoder  2 года назад

      Hey there code with Susan. Thanks for watching. Welcome to the channel! 😎

  • @vitorgabriel15
    @vitorgabriel15 2 года назад +2

    Great content! I'm loving how you deliver it! Thank you very much for all your effort. ❤️

    • @DesignatedCoder
      @DesignatedCoder  2 года назад

      Hey there Gabriel Silva. Thanks for watching. Welcome to the channel! 😎

  • @rottnhombre
    @rottnhombre Год назад +1

    This is exactly what I needed! Thanks so much!

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Karen M. Thanks for watching. Welcome to the channel! 😎 Glad it worked out for you!

  • @fleckenfurz77
    @fleckenfurz77 2 года назад +1

    Thanks a lot! Exactly what i needed right now! :)
    I think to make the sail command global on windows, you just can use vim for it:
    in your preferred terminal type:
    vim ~/.zshrc
    then in vim just insert this alias:
    alias sail="bash vendor/bin/sail"
    and then press ESC and write ":wq" (for write and quit)

    • @DesignatedCoder
      @DesignatedCoder  2 года назад +1

      Hey there AverageAtheist. Thanks for watching. Welcome to the channel! 😎 I will give it a try again. When I opened up vscode with ubuntu it wasn't saved globally within the ubuntu env. Not a huge deal within a session but over a few days it gets annoying. Glad you got yours up and running!

  • @two-zero
    @two-zero Год назад +2

    Thank you Designated Coder

  • @jessenwaigwe6463
    @jessenwaigwe6463 Год назад +2

    love your voice🌺

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there jesse Nwaigwe. Thanks for watching. Welcome to the channel! 😎

  • @william.darrigo
    @william.darrigo Год назад +1

    This helped a lot!

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there William. Thanks for watching. Welcome to the channel! 😎

  • @ghaliapriyaldi8567
    @ghaliapriyaldi8567 Год назад +1

    i lost at 7:20, how can you bring up wsl at the current project, where dis you set the blog_test?

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there @ghaliapriyaldi8567. Thanks for watching. Welcome to the channel! 😎 I have laravel installed globally on my system so laravel new was in a folder on my hard drive. I didn't show this as this video was not about wsl but about using sail with docker. I pointed out resources on how to set wsl up to give you ideas on how to do it yourself. Hope this helps and good luck to you.

  • @genova9901
    @genova9901 8 месяцев назад +1

    I'm new to docker and for whatever reason, it takes up half of my ram....is that normal?
    On my laptop I had 8GB and it took about half. On my desktop, I have 16GB of ram and it does the same...can you help me out ? ( well, assuming that's not normal)

    • @DesignatedCoder
      @DesignatedCoder  8 месяцев назад

      Hey there @genova9901. Thanks for watching. Welcome to the channel! 😎 I'm still by no means a docker pro so I'm not sure if it's normal or not. I have tried newer versions of docker on an older laptop that seem to just not even want to install but my pc has 64gb of ram so it handles pretty much everything I've thrown at it so far. I have only been using it for the tuts I put on here and I use neovim on my laptop to interact with my projects. A quick search of forums showed people off and on have had similar issues. It might be worth it take a look at installing docker without the desktop in you WSL and just issue commands from the terminal. The desktop just gives a graphical interface to see what's going on but you can call docker commands to get the same info. It would be much less strain on your system. I unfortunately do not have a video on this as it hasn't really come up for me. It's a shame when one app absorbs so much in resources to essentially just look pretty. Anyway, hope this helps and good luck to you.

  • @Gooloso98
    @Gooloso98 Год назад +1

    to make the alias permanent you have you add it to the zsh(in your case) config file, make the alias and export it.

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Goloso. Thanks for watching. Welcome to the channel! 😎 Thanks for that, I managed to get it working using the zshrc file. Appreciate the help!

  • @ianclemence
    @ianclemence 2 года назад +2

    After installing docker for the first time in your pc, did you also have to install php before creating the laravel app? Or how did you go about it?

    • @DesignatedCoder
      @DesignatedCoder  Год назад +1

      Hey there Ian Clemence. Thanks for watching. Welcome to the channel! 😎 No I didn't. When I whipped up the project in the container it built up the entire environment including php.

  • @comander23456
    @comander23456 Год назад +1

    So do I still need xampp and composer if i want to use jetstream + livewire package

    • @DesignatedCoder
      @DesignatedCoder  Год назад +1

      Hey there Vishal Kumar. Thanks for watching. Welcome to the channel! 😎 No, xampp is only a dev environment as is docker. Jetstream and livewire are packages that can be installed on the dev environment.
      The composer create-project laravel/laravel example-app command that you would use for xampp is essentially the same command as this command to whip up a Laravel project for docker: curl -s "laravel.build/example-app" | bash.
      This would mean a manual install of your jetstream packages. Hope this helps and good luck to you.

  • @shinzoken1
    @shinzoken1 Год назад +1

    i was wondering.. all good and stuff with docker and sail.. but what about development behind ssl/https? some features require it but how do you obtain it with this sail setup?

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there, ZFG.Shinzoke! I'm not really sure as I've just barely started using docker. Have you tried searching online for this setup?

    • @shinzoken1
      @shinzoken1 Год назад +1

      ​@@DesignatedCoder hehe well i did :) currently using a customized dev environment based of Osteel's Blog ;)

  • @giacomogaravaglia6742
    @giacomogaravaglia6742 Год назад +1

    What happen if I want to work on two project at the same time? How can I reach both if both containers expose the same ports?

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Giacomo Garavaglia. Thanks for watching. Welcome to the channel! 😎 I've not had a need for this process so I'm not sure I would be the best to ask on this. I think you might have to create alternate names per project for some services that overlap. You can look up examples of this that should point you in the right direction. Hope this helps and good luck to you.

  • @dtb8008
    @dtb8008 2 года назад +2

    what are the prerequisites for a laravel project? PHP only?

    • @DesignatedCoder
      @DesignatedCoder  2 года назад

      Hey there DT B. Thanks for watching. Welcome to the channel! 😎 Laravel is a PHP framework

  • @honeysyal131
    @honeysyal131 Год назад +1

    Nice content 👍. Can you make a video about how to push a docker project to the GitHub.
    Thank you

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Honey Syal. Thanks for watching. Welcome to the channel! 😎 Great idea! I'll add it to the list of future videos.

  • @khurram4165
    @khurram4165 Год назад

    when running site from docker page loads very slowly

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there Khurram. Thanks for watching. Welcome to the channel! 😎 That's strange, it loads up quickly for me. Is your system able to handle docker? Does it do that with all projects?

    • @khurram4165
      @khurram4165 Год назад +1

      @@DesignatedCoder i don't know about that it my first time using docker and sail

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      I'm not a Docker pro just yet so I'm not really sure I can answer your question. On my laptop it runs slow if at all in development and on my pc it works well. Maybe do a google search and see if it's a common problem?

    • @khurram4165
      @khurram4165 Год назад

      @@DesignatedCoder ok I will look into it to find a solution

    • @PakistanArmyYouth
      @PakistanArmyYouth Год назад

      @@khurram4165 Wow i was the Employee of The Next Idea and you was my senior and
      I think you should increase your ram 8 GB RAM is Less.
      same problem with me i will increase my RAM.
      But one problem with me i want view tables like MySQL PHP myadmin i do not know.
      How he is making the connection with database

  • @latlov
    @latlov 2 года назад +2

    4:16 inicio

    • @DesignatedCoder
      @DesignatedCoder  2 года назад

      Hey there latlov. Thanks for watching. Welcome to the channel! 😎 And thanks for the timestamp. The rest of the timestamps are in the description and pinned comment so that you can navigate to the most relevant parts for you.

  • @jackelofnar
    @jackelofnar Год назад +1

    Easiest way is to add phpmyadmin to the docker compose file

    • @DesignatedCoder
      @DesignatedCoder  Год назад

      Hey there jackelofnar. Thanks for watching. Welcome to the channel! 😎 Easiest way to what?

  • @frans7671
    @frans7671 11 месяцев назад +1

    Has anyone used Laravel Sail with MongoDB?

    • @DesignatedCoder
      @DesignatedCoder  11 месяцев назад

      Hey there @frans7671. Thanks for watching. Welcome to the channel! 😎
      I can't speak for everyone but as for myself, I haven't tried it. Mysql has been my go to for ages. That's not to say it isn't possible. I know that using Laravel Homestead it is possible so I don't see why it wouldn't work for Sail. You could look up how to set up mysql for the docker-compose yaml and then also make changes to your .env before you run the sail up command.
      Hope this helps and good luck to you!

  • @Salomonkein1992
    @Salomonkein1992 Месяц назад +1

    Me rompe el corazón hacer este cambio pero es necesario

    • @DesignatedCoder
      @DesignatedCoder  Месяц назад +1

      Hey there @Salomonkein1992. Thanks for watching. Welcome to the channel! 😎
      Welcome to the dark side...