【Tutorial】10 min with Laravel Sail + Docker on WSL2 - For Beginner

  Рет қаралды 41,747

Dogcomp

Dogcomp

Күн бұрын

Пікірлер: 259
@Dogcomp
@Dogcomp 3 жыл бұрын
💡 Troubleshooting: If you encounter "port has already been allocated" issue, you can run the following command with Administrator right: net stop winnat netsh int ipv4 set dynamic tcp start=49152 num=16384 netsh int ipv6 set dynamic tcp start=49152 num=16384 net start winnat Source: github.com/docker/for-win/issues/3171#issuecomment-788808021
@Michael-u2q5t
@Michael-u2q5t Жыл бұрын
This was literally the best youtube tutorial of my life. Everything worked as expected, fast and easy. Thank you so much!
@griffdotexe
@griffdotexe Жыл бұрын
Such a massive help to my learning. Thank you! As a quick side note. If anyone is having issues with curl or bash commands not running after installing Ubuntu for the first time, you'll need to restart your machine. Your bash and curl commands should work after.
@prospersosu
@prospersosu 2 жыл бұрын
After long searching and watching unhelpful videos you've got me excited as I can now clearly and confidently start my laravel dev in docker. Thank you
@angelocoelho7233
@angelocoelho7233 2 жыл бұрын
This is one of the best tutorial that I saw on this matter. Lots of help, almost giving up for today... and you saved it. Thanks!
@Dogcomp
@Dogcomp 2 жыл бұрын
Glad it helped! 😁 Please do not forget subscribe and share the video...
@russelcurioso9959
@russelcurioso9959 3 жыл бұрын
The best docker laravel setup tutorial!
@kirilln289
@kirilln289 3 жыл бұрын
Finally complete tutorial on that topic! Very great! Thanks for sharing!
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for the "Subscribe" too. Please kindly leave the topic you'd like to hear in the future. Thanks again & take care~ 🙂
@samuelirwin888
@samuelirwin888 3 жыл бұрын
finally! I've been looking for a tutorial like this high and low. Thanks man! Appreciate it.
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for your support 😀! Please Subscribe to my channel for more Laravel tutorial videos!
@ThusithaWick
@ThusithaWick 2 жыл бұрын
This is the one i been looking for.
@achmedislamichernawan7070
@achmedislamichernawan7070 3 жыл бұрын
wow, i really like the video. Even the video explains the routine practice every time we start work.
@nildesperandum9960
@nildesperandum9960 3 жыл бұрын
Short, Concise, Perfect! Many Thanks to You! ... no doubts, no problems, really no need to look for anything else. Wish I started with this tutorial.
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad it helped! Please also subscribe to my channel. Thanks!
@Catalin52
@Catalin52 2 жыл бұрын
@@Dogcomp I confirm, great job with this video! 💪💪
@Poegim
@Poegim 3 жыл бұрын
This is what i was searching for, thanks!
@umidjonzoxidov
@umidjonzoxidov 2 жыл бұрын
Beneficial video, thanks for the tutorial!
@SupunSamarakoon
@SupunSamarakoon 3 жыл бұрын
Wow. This is the best tutorial for this topic. I was finally able to make this work after watching this video. Thank you very much.
@Dogcomp
@Dogcomp 3 жыл бұрын
You're welcome 😀! Please Subscribe my channel and tell me what you'd like want to watch... 👍
@turdakhov
@turdakhov Жыл бұрын
Thank you! Thank you! Thank you! Using your tutorial for years :)
@tiagorodrigues_br
@tiagorodrigues_br 2 жыл бұрын
The best tutorial for Sail on Windows!! Thank you very much
@aujlarj
@aujlarj 2 жыл бұрын
Everything I needed to understand and do in one video! Perfect!
@ELYUSEF
@ELYUSEF 2 жыл бұрын
i spent a 2 days trying to make it works till I found this video and it worked thank you so much
@Dogcomp
@Dogcomp 2 жыл бұрын
Glad it helped!😀
@virajjayasinghe3434
@virajjayasinghe3434 3 жыл бұрын
This guy deserves more than the current number of views. Thanks
@Dogcomp
@Dogcomp 3 жыл бұрын
You are welcome. please subscribe my channel and tell me what you like to see in the future. 😇
@ibrahimakhaliloulayediallo8786
@ibrahimakhaliloulayediallo8786 Жыл бұрын
Very instructive... Thanks a lot
@HVSharma
@HVSharma 3 жыл бұрын
Really Nice video. Simple & Short. No complications at all.
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad it helped! Please also subscribe to my channel. Thanks!
@alaamohammed4668
@alaamohammed4668 3 жыл бұрын
That was such a very complete How-to video, Thanks very much.
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad it was helpful! Please also subscribe to my channel. Thanks!
@BitcoinStrategy
@BitcoinStrategy 3 жыл бұрын
This video is a god send. Thank you so much!!
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad you liked it! Please kindly subscribe to my channel too.
@BitcoinStrategy
@BitcoinStrategy 3 жыл бұрын
@@Dogcomp sure thing
@ImaDrunkMonkey
@ImaDrunkMonkey 2 жыл бұрын
Very well done. Simple to follow and understand. Thank you for this tutorial.
@Gallumbos2007
@Gallumbos2007 3 жыл бұрын
Very good tutorial. My compliments!
2 жыл бұрын
Amazing, very useful video, thanks !
@jmmbuthia
@jmmbuthia 3 жыл бұрын
Lovely. Struggled to setup laravel on WSL. This was straight to the point
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks! Pls also subscribe to my channel. ;-)
@lubomirhorvath823
@lubomirhorvath823 3 жыл бұрын
Thank you for nice & clean explanation. It's my first touch with Docker. It was very helpful.
@Dogcomp
@Dogcomp 3 жыл бұрын
You're welcome. Please kindly subscribe to my channel to receive more Laravel videos. Take Care~
@Dasmashina
@Dasmashina 2 жыл бұрын
the best tutorial, thank you
@jacosmonjur6728
@jacosmonjur6728 2 жыл бұрын
grate and faithful tutorial...thank bro
@grgr144
@grgr144 3 жыл бұрын
Amazing guide! Thank you very much!
@pratikdeshpande4122
@pratikdeshpande4122 2 жыл бұрын
Awesome !!!! Never seen such a precise tutorial. I will remember you always for the way you edited the content. I wonder how you managed to screen-record a shutting down PC?
@Dogcomp
@Dogcomp 2 жыл бұрын
Thx. I am using Virtual Machine/Remote Desktop
@doxasistemas
@doxasistemas 3 ай бұрын
Excelente tutorial, gracias!!!
@Dogcomp
@Dogcomp 3 ай бұрын
Thanks! Please subscribe and i am back! Will upload for more Laravel tutorial!
@jesselealdossantos
@jesselealdossantos 3 жыл бұрын
Great tutorial! You are to be congratulated!
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for your support 😀! Please Subscribe my channel and tell me what you'd like want to watch..
@davidfrei7as
@davidfrei7as 3 жыл бұрын
The best tutorial ever! Thank you so much!
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for the comment. Please kindly subscribe to my channel too.
@fabriciogarcia523
@fabriciogarcia523 3 жыл бұрын
Thanks for sharing! This tutotial is great and exactly that I needed.
@fabriciogarcia523
@fabriciogarcia523 3 жыл бұрын
After reinit sail ("sail down" and "sail up -d") "localhost/" doesn't work. Could you please help me? Thank you!
@Dogcomp
@Dogcomp 3 жыл бұрын
@Fabricio Garcia did you see any error message? you can also check the Docker Desktop, make sure all green in the Dashboard. I try my best to help
@fabriciogarcia523
@fabriciogarcia523 3 жыл бұрын
@@Dogcomp Thank you very much for your response. I could fix it adding APP_PORT=8080 in .env, restarting Sail and Docker. It works in "127.0.0.1:8080/". Best regards, Fabricio.
@Dogcomp
@Dogcomp 3 жыл бұрын
Cool! you manage to resolve it. Another Laravel Sail video is coming soon, stay tune and take care :-)
@dmitriylasarev
@dmitriylasarev 3 жыл бұрын
amazing tutorial! very helpfully, thank you very much!
@SuperLandrover109
@SuperLandrover109 3 жыл бұрын
amazing tutorial... clear and concise... THANK YOU !
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for the subscription too!
@JigneshJoisar
@JigneshJoisar 3 жыл бұрын
The exact tutorial that I needed. Thanks for Sharing!
@Dogcomp
@Dogcomp 3 жыл бұрын
You're welcome 😀! Please Subscribe my channel and tell me what you'd like want to watch... 👍
@JigneshJoisar
@JigneshJoisar 3 жыл бұрын
@@Dogcomp I subscribed. deep dive into laravel sail with docker for more productivity.
@Dogcomp
@Dogcomp 3 жыл бұрын
@@JigneshJoisar May be you can take a look this new video kzbin.info/www/bejne/ZnzNqqiYh8mnrKM it talks about Swoole, Laravel Mix Hot Reload, Xdebug with VS Code. Thank you !
@Krixoro
@Krixoro 2 жыл бұрын
You helped me a lot! Amazing tutorial, thanks!
@Babaknouri
@Babaknouri 3 жыл бұрын
Thank you for the great content, it was very helpful.🌹🌹🌹
@michoo09
@michoo09 2 жыл бұрын
That helped a lot, thank you very much
@michoo09
@michoo09 2 жыл бұрын
Actually when i execute ./vendor/bin/sail up -d it returns "no such service: laravel.test" any ideas ?
@Dogcomp
@Dogcomp 2 жыл бұрын
Make sure you are in the Laravel project directory... then try to add "APP_SERVICE=laravel-custom.test" in your .env file hopefully, it solves your issue.
@michoo09
@michoo09 2 жыл бұрын
@@Dogcomp no it's saying "no such service laravel-custom.test". before commenting the error i've tried to run ./vendor/bin/sail build --no-cache and it gives the same error after
@Dogcomp
@Dogcomp 2 жыл бұрын
Are you able to confirm the image "sail-8.0/app" or "sail-8.1/app" was built successfully? you should be able to check in the Docker Desktop Images Tab. if still unable to docker up successfully, maybe you should try to reset your WSL2.
@michoo09
@michoo09 2 жыл бұрын
@@Dogcomp only images I have are : docker/getting-started / getmeili/meilisearch / laravelsail/php81-composer / mailhog/mailhog / redis
@subhesadek6008
@subhesadek6008 3 жыл бұрын
Really helpful, thank u.
@ibrokhimqudratov407
@ibrokhimqudratov407 2 жыл бұрын
Thank you very much, everything is very simple and clear 👍👍👍👍 .
@Dogcomp
@Dogcomp 2 жыл бұрын
Glad it helped!😀
@davidgabbay4616
@davidgabbay4616 3 жыл бұрын
should explain how did you launch the database managment tool, did you install it ? how ? what do you recommand ?
@Dogcomp
@Dogcomp 3 жыл бұрын
Sorry for late reply. the software is in the description. I will add shortcut in the video. thanks for telling me... • HeidiSQL www.heidisql.com/download.php
@rodrigosoares5207
@rodrigosoares5207 2 жыл бұрын
Great! Thanks a lot.
@VaelVictus
@VaelVictus 3 жыл бұрын
Amazingly helpful, thank you. I had trouble getting Windows Terminal to recognize my linux installation, but the app store's shortcut for Ubuntu (which it made in my Start programs) was what I had to use.
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks. Pls subscribe to my channel for more tutorial videos. Your default WSL distro must be Ubuntu, so you can use it in Windows Terminal. pureinfotech.com/set-default-distro-wsl2-windows-10/
@hsutomy8375
@hsutomy8375 3 жыл бұрын
Thanks! This is exactly what I need!!👏
@Dogcomp
@Dogcomp 3 жыл бұрын
You're welcome 😀! Please Subscribe to my channel and tell me what you'd like want to watch... 👍
@annewright8102
@annewright8102 3 жыл бұрын
Thanks so much for this video, it worked great!
@Dogcomp
@Dogcomp 3 жыл бұрын
You are welcome. please subscribe to my channel and tell me what you like to see in the future. 😇
@abdulrafay1509
@abdulrafay1509 3 жыл бұрын
Nob bullsbit setup man, nice work!
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for your support 😀! Thanks for the subscription too...
@abdulrafay1509
@abdulrafay1509 3 жыл бұрын
@@Dogcomp not a problem bro :)
@AnlGUNDAL
@AnlGUNDAL 3 жыл бұрын
Clean, easy, perfect
@alltimehasan
@alltimehasan 3 жыл бұрын
Just Awesome!
@Dogcomp
@Dogcomp 3 жыл бұрын
Many many thanks! Please do not forget to subscribe to my channel!
@jitendralovekar1
@jitendralovekar1 Жыл бұрын
Good Tutorial. Thanks you.
@tylerprysko4448
@tylerprysko4448 3 жыл бұрын
Great video!! Really helped me out! Thanks 👍
@Dogcomp
@Dogcomp 3 жыл бұрын
You're welcome 😀! Please Subscribe my channel and tell me what you'd like want to watch... 👍
@marcusnielsen4403
@marcusnielsen4403 3 жыл бұрын
Exactly the tutorial I needed. That´s a like from me
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks for your support 😀! Please Subscribe my channel and tell me what you'd like want to watch... 👍
@flyzea2663
@flyzea2663 3 жыл бұрын
Amazing video! Thank you. One question, I have trouble running the mysql part. I somehow change the port of the mysql to 3307 due to an existing another mysql server running on 3306 (and I use them for another project). And it works. But I encounter problem when running sail migrate artisan. Is changing the port cause this problem? I tried to connect to mysql workbench, but failed too.
@Dogcomp
@Dogcomp 3 жыл бұрын
you update the "DB_PORT=3307" in your .env file? did you run "sail down" and "sail up -d" after changing the port? you connect mysql workbench with localhost:3307?
@flyzea2663
@flyzea2663 3 жыл бұрын
@@Dogcomp no.. i'm not sure wheteher the 'sail migrate' create another mysql server.. i already have mysql server running on port 3306.. that's why I change the port to 3307 in .env file.. can I just use the existing mysql server?
@Dogcomp
@Dogcomp 3 жыл бұрын
​@@flyzea2663 "sail artisan migrate" will only create tables. you can use the existing MySQL. Just make sure you create a DB & User with proper permission and configure it in the .env file.
@erikkuollut1181
@erikkuollut1181 2 жыл бұрын
You are the best !
@idhamrahadian09
@idhamrahadian09 3 жыл бұрын
BIG THANKS
@RockStar-te7fy
@RockStar-te7fy 3 жыл бұрын
Very nice tutorial. That i was looking.
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad I could help! Please SUBSCRIBE my channel for more Laravel & programming videos. 😁
@mbailionel7910
@mbailionel7910 2 жыл бұрын
Hi, please can someone help me on how to set up the data base management tool.? How do i get / locate its dialog box first. This video is quite perfect and help me a lot, except on how to open the database management tool. i'm waiting.
@Dogcomp
@Dogcomp 2 жыл бұрын
are you able to tell me you stuck at which min:sec in the video ?
@josueando
@josueando 2 жыл бұрын
hello sir, i have wamp install on my computer and when i write localhost in the search bar it automatically opens wamp server landing page instead of my laravel project, how can i fix this??
@Dogcomp
@Dogcomp 2 жыл бұрын
Just use the different port. I assume your WAMP using port 80. so in your Laravel .env file, just add "APP_PORT=8012" ( or any unused port no.) then sail down and sail up -d again. then you should be able to access via localhost:8012 Hope it helps!
@retvain
@retvain 3 жыл бұрын
amazing, best tutorial! very helpfull! thank you!
@Dogcomp
@Dogcomp 3 жыл бұрын
Please Subscribe my channel and tell me what you'd like want to watch... 👍
@retvain
@retvain 3 жыл бұрын
@@Dogcomp more video about laravel in wsl2 experience :) when i try run ./vendor/bin/sail up -d in /mnt/d/dev/test-project, i get "/usr/bin/env: ‘bash ’: No such file or directory" error message :(
@Dogcomp
@Dogcomp 3 жыл бұрын
@@retvain can you try to build inside the Windows file system... "cd ~" will bring you to the Linux User Home Directory You may refer to this... medium.com/p/30276265e588#af3d
@retvain
@retvain 3 жыл бұрын
@@Dogcomp Thanks for help. I appreciate it. I installed php 8 and "composer install" in wsl since the project was cloned. And before that, I tried to run the "composer install" in the Windows environment
@Dogcomp
@Dogcomp 3 жыл бұрын
@@retvain actually the installation of PHP or composer is not required. we actually running everything on the docker images. I will share more about this in the future. thanks and take care!
@jgscastellon
@jgscastellon 2 жыл бұрын
I need some of help in tha part of the database i started sqlyog but get this answer... "Error no. 2059 Authentication plugin 'catching_sha2_password' cannot be loaded"
@Dogcomp
@Dogcomp 2 жыл бұрын
Sorry for later reply. This should be ans you looking for: rajlama.com.np/blog/solve-sqlyog-connection-error-error-no-2058-plugin-caching-sha2-password-could-not-be-loaded
@pushparajbhatta
@pushparajbhatta Жыл бұрын
Thank you for the great tutorial. I have an issue with Vite. I am able to run the vite server also whenever I change anything on vscode and save, it shows page reload on vscode console, but my website doesnot reload on chrome. How can I fix this ? Is this because the vite is sending reload to wsl and my chrome is on windows ?
@hendrikhuman1403
@hendrikhuman1403 2 жыл бұрын
Hi, great tutorial! But can you please help me. When I run .vendor/bin/sail up -d at 4:50, I just get the error: "-bash: /vendor/bin/sail: No such file or directory" Any help will be appreciated, thanks!
@Dogcomp
@Dogcomp 2 жыл бұрын
Thanks! You need to make you "cd" (change directory) into the laravel project folder. You can use "ls" to list the files/folder in the current directory. You should see "vendor" folder. Then you can only execute sail command. Hope it helps :-)
@AriusTigger
@AriusTigger 2 жыл бұрын
Thanks, but how to config the APP_URL? in the browser instead of localhost?
@Dogcomp
@Dogcomp 2 жыл бұрын
I found the same question for your query: stackoverflow.com/questions/66171148/laravel-sail-how-to-change-local-dev-domain However, you can also try my way: blog.devgenius.io/multi-laravel-sail-sites-with-custom-domain-e13c07d9dd0c Hope it helps!
@nubesdechocholate
@nubesdechocholate 2 жыл бұрын
Me ayudo bastante junto con la documentación
@Dogcomp
@Dogcomp 2 жыл бұрын
Estoy muy contenta de que ayude!
@vanhelsingx69x
@vanhelsingx69x Жыл бұрын
At min 4:45 after i write the command ./vendor/bin/sail up -d I get an error "docker is not running" even if I opened the program. What can I do?
@Dogcomp
@Dogcomp Жыл бұрын
Maybe the integration of WSL is broken. Try uninstall docker and try again. You may visit my medium article in the description for more troubleshooting tips
@vanhelsingx69x
@vanhelsingx69x Жыл бұрын
@@Dogcomp I tried some sugestions by chatgpt then my C drive was full, so yeah, I uninstalled an installed again and now it works fine. Anyway thank you very much this is the best tutorial for real, short and direct approach. Have a nice day! :D
@Dogcomp
@Dogcomp Жыл бұрын
Great that you able to solve by yourself! Keep learning :-) Please help to subscribe my channel and share my videos. Have a nice day!
@shot_gamer
@shot_gamer 2 жыл бұрын
big thanks!
@yacobee
@yacobee 2 жыл бұрын
the problem is migration fails after by php artisan migrate with base table error while I can connect to db !
@Dogcomp
@Dogcomp 2 жыл бұрын
Maybe can you double check the .env file? Also try to php artisan cache:clear & php artisan config:clear so, it will read your correct db configuration from your .env file
@iMaty07
@iMaty07 2 жыл бұрын
thank you!
@woosukbyun6780
@woosukbyun6780 3 жыл бұрын
what is the name of the database management tool in the video?
@Dogcomp
@Dogcomp 3 жыл бұрын
The software is in the description. I will add shortcut in the video. thanks for telling me... • HeidiSQL www.heidisql.com/download.php
@khushboochoudhari9637
@khushboochoudhari9637 2 жыл бұрын
is cmd and windows terminal is diffnt from each other? i tried wsl on cmd and also on poweshell and later i tried curl command but i got curl not found error.. can you help me to know difference between two and if it is same why curl is not working in my systeam
@Dogcomp
@Dogcomp 2 жыл бұрын
cmd is the MS-DOS age for some compatilities reason... powershell is to replace MS-DOS... however, Windows Terminal support WSL with BASH so Windows Terminal will cover everything you needs...
@gregoriokurniawan7686
@gregoriokurniawan7686 2 жыл бұрын
this is amazing tutorial, simple but clear anyway i have problem when i access db from heidisql, i dont have access with username and password from env, can you help me?
@Dogcomp
@Dogcomp 2 жыл бұрын
I am curious that your .env is not accessible... hmm... why?
@UnchartedWorlds
@UnchartedWorlds 2 жыл бұрын
I type code . inside Ubuntu cmd and I'm in laravel project folder and I get "Command 'code' not found, did you mean:". What is code . and why should it be there? What installs it? It's not part of linux? How does it work for you?
@Dogcomp
@Dogcomp 2 жыл бұрын
It is the Visual Studio Code integration for WSL. if the code command is not working. you can try to google wsl code not found, there are plenty of reasons... hopefully you can find the solution.
@kutang9689
@kutang9689 Жыл бұрын
I could not set alias for sail. please suggest what to do. thank u
@raziehzabihiasrami9264
@raziehzabihiasrami9264 2 жыл бұрын
that was perfect
@SXpitbull
@SXpitbull 3 жыл бұрын
Awesome and straight to the point video! I just have one question. Vscode telling me to define php executable path but I don't have it installed on wsl how can I do that ?
@Dogcomp
@Dogcomp 3 жыл бұрын
Thanks! You can watch another video on my channel: kzbin.info/www/bejne/ZnzNqqiYh8mnrKM It guides you to use the PHP executable in the docker image. Please subscribe to my channel for more videos!
@mictest1101
@mictest1101 2 жыл бұрын
I am doing the same but laravel installing command is not working . Can anyone solve. rest of things are running well
@Dogcomp
@Dogcomp 2 жыл бұрын
Try to refer official docs: laravel.com/docs/9.x/installation I don't think you still need Laravel Install, if you're using Laravel Sail Only single project in the Laravel Sail which is aldy deployed by the docker script : laravel.build/example-app
@afonsomaximino
@afonsomaximino 3 жыл бұрын
You're my saviour!
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad it helps you! Please also subscribe to my channel. Thanks!
@kapilvermasgnr
@kapilvermasgnr 2 жыл бұрын
How to use one or more laravel projects with sail?
@Dogcomp
@Dogcomp 2 жыл бұрын
Laraval Sail only run single project, if you want multiple saild, you can include Nginx image for reverse proxy or multiple non-conflicting ports.
@sasastaja
@sasastaja 3 жыл бұрын
Hey, thanks for the good content you're providing, keep up the good work! Question: Can we put our project in windows desktop location and not on wsl location ?
@Dogcomp
@Dogcomp 3 жыл бұрын
Using Windows Path will experience much slower in I/O. It is known limitation of WSL2.
@sasastaja
@sasastaja 3 жыл бұрын
@@Dogcomp So when we use Laravel in Docker, we should shift out mindset to WSL and not to windows path ?
@Dogcomp
@Dogcomp 3 жыл бұрын
@@sasastaja ​ Most probably you will use Linux Hosting when you publish to the internet. it is good to use Linux on your dev machine. you can read this for the performance comparison faun.pub/why-am-i-moving-away-from-homestead-for-laravel-sail-b8140b7f6f7e
@sivakhico2413
@sivakhico2413 2 жыл бұрын
Perfekt !!!!
@Dogcomp
@Dogcomp 2 жыл бұрын
Tack !!!! Prenumerera gärna på min kanal :-)
@kutang9689
@kutang9689 Жыл бұрын
Thank u very much
@pouyagheitooli
@pouyagheitooli 9 ай бұрын
Excelent and woking
@sampower7887
@sampower7887 3 жыл бұрын
Wow, it was this easy after all! 1 question, I put my projects in my username/Projects instead of ~/... , does that make a difference I need to worry about?
@Dogcomp
@Dogcomp 3 жыл бұрын
Hi, I'm glad it helped. For your question, if you putting the files in your Windows User Folder, the file performance will be very very bad. It is stated by Microsoft. You can read my blog here for more info: blog.devgenius.io/kickstart-your-laravel-web-app-using-laravel-sail-30276265e588#956e You can take a look of the actual performance test: faun.pub/why-am-i-moving-away-from-homestead-for-laravel-sail-b8140b7f6f7e *Please subscribe my channel for more videos. Thanks 😀*
@sampower7887
@sampower7887 3 жыл бұрын
@@Dogcomp Ah I was actually noticing that but just assumed Windows gonna Windows. Thanks again!
@Dogcomp
@Dogcomp 3 жыл бұрын
@@sampower7887 You're most welcome. Please do not forget subscribing my channel. Thanks a lot!
@seyidtakele8158
@seyidtakele8158 3 жыл бұрын
Helpful
@tomasbyrtus5121
@tomasbyrtus5121 2 жыл бұрын
Is there any way how to run it with hot reload?
@Dogcomp
@Dogcomp 2 жыл бұрын
This is the article i wrote about Hot Reload blog.devgenius.io/quick-tip-laravel-mix-hot-reloading-in-sail-with-browsersync-555b6c97bca3 clap for me pls... thanks a lot. You may follow me in Medium too, hope the articles in my Medium could help you.
@jesushernandez6052
@jesushernandez6052 3 жыл бұрын
Thank you for this tutorial! It's been great so far, but I'm running into a bit of an issue: on the step "Install Laravel Sail", when I run wsl on windows terminal it doesn't do anything, just gives me another line that start with PS C:\Users\[User]>. Do you know what I can do to get into Ubuntu?
@Dogcomp
@Dogcomp 3 жыл бұрын
what is the output if you try "wsl -l -v"?
@jesushernandez6052
@jesushernandez6052 3 жыл бұрын
@@Dogcomp NAME STATE VERSION * docker-desktop-data Running 2 Ubuntu Running 2 docker-desktop Running 2
@Dogcomp
@Dogcomp 3 жыл бұрын
@@jesushernandez6052 you need to set Ubuntu as default distro Using this command " wsl -s Ubuntu" Hope it solves your problem.
@jesushernandez6052
@jesushernandez6052 3 жыл бұрын
@@Dogcomp Thank you! That worked
@mjdbaga
@mjdbaga 3 жыл бұрын
Hi. Great tutorial. However, I'm stuck on running wsl, saying "An error occurred mounting one of your file systems. Please run 'dmesg' for more details." When I run dmesg, it says "dmesg : The term 'dmesg' is not recognized as the name of a cmdlet, function, script file, or operable program." Been at it for a few hours now, and resources online says check my kernel. It's currently the latest one which is 5.10.43. Can you point me in the right direction? Thanks.
@Dogcomp
@Dogcomp 3 жыл бұрын
_dmesg_ should be a linux command. Maybe you should try to reinstall your WSL2. First, you uninstall your Ubuntu (Settings -> App -> Ubuntu -> Uninstall) Then remove the WSL _dism.exe /online /disable-feature /featurename:VirtualMachinePlatform_ _dism.exe /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux_ Then restart computer & reinstall WSL2 you may also refer the text version: medium.com/p/30276265e588 easier for you to copy paste... Waiting for your good news!
@mjdbaga
@mjdbaga 3 жыл бұрын
@@Dogcomp Hi. Thanks again. Followed instructions to the tee. Still the same. Wondering if there are other factors?
@Dogcomp
@Dogcomp 3 жыл бұрын
@@mjdbaga Hi, it seems like not very straight forward to fix your issue. Maybe you can like my FB Page: facebook.com/dogcomp.soln We can talk via Messenger.
@mjdbaga
@mjdbaga 3 жыл бұрын
@@Dogcomp Hi, I read somewhere that it might be an issue with Windows 11 as I'm running insider build.
@Dogcomp
@Dogcomp 3 жыл бұрын
@@mjdbaga Actually i tested in the first leaked build... it shows no issue... maybe you can take a look kzbin.info/www/bejne/hYfRkK2crLytncU hopefully reinstall WSL should help.
@canawarnet
@canawarnet 2 жыл бұрын
thanks a lot
@bc0078
@bc0078 3 жыл бұрын
Nice tutorial. How do I add more websites? Since I have more projects, each with their db
@Dogcomp
@Dogcomp 3 жыл бұрын
Glad that you enjoyed the tutorial. Currently, Laravel Sail do not support multiple project out-of-the-box. It is not very straightforward to make it support. Please Subscribe my channel and I will come across this topic in the near future. thanks!
@Dogcomp
@Dogcomp 3 жыл бұрын
@bc0078 Another workaround is to set _APP_PORT=12345_ in your _.env_ file so you can run multiple Laravel Sail Instance with different ports. Other services _FORWARD_DB_PORT_ , _FORWARD_REDIS_PORT_ , _FORWARD_MEILISEARCH_PORT_ , _FORWARD_MAILHOG_PORT_ , _FORWARD_MAILHOG_DASHBOARD_PORT_ are required to be set by per project base to avoid conflict.
@Dogcomp
@Dogcomp 3 жыл бұрын
I have created an article to teach you how to step-by-step to achieve what you want. medium.com/p/e13c07d9dd0c Please Subscribe to my channel for the video that talks about this too.
@Dogcomp
@Dogcomp 3 жыл бұрын
This is the new video talks about your query: kzbin.info/www/bejne/hGTYh4htidRleMU
@350studio6
@350studio6 2 жыл бұрын
Does it havew SSL support ?
@Dogcomp
@Dogcomp 2 жыл бұрын
You can take a look my another video: kzbin.info/www/bejne/ZnzNqqiYh8mnrKM thx for leaving the comment :-)
@siangboongoh3076
@siangboongoh3076 3 жыл бұрын
How can we custom the ports? I have mysql installed and running in my local pc, i want to keep my existing mysql instance on my pc and use custom port for Laravel Sail
@Dogcomp
@Dogcomp 3 жыл бұрын
the simplest way is adding FORWARD_DB_PORT={YOUR PORT NUMBER} in the .env then sail down and up again... You can watch this kzbin.info/www/bejne/hGTYh4htidRleMU for more about customizing the port and multiple Sail project with custom Domain Please SUBSCRIBE my channel for more Laravel & programming videos. 😁
@siangboongoh3076
@siangboongoh3076 3 жыл бұрын
@@Dogcomp thanks! Subscribed too.
@imintoMusic
@imintoMusic 2 жыл бұрын
hellooo how can i import project in docker? i paste it inside the home directory. but i cant see it inside the docker app to run it
@Dogcomp
@Dogcomp 2 жыл бұрын
I think you are trying to host multiple Laravel projects like Homestead? you may take a look my another video: kzbin.info/www/bejne/hGTYh4htidRleMU the Laravel Sail was working for single site only
@ali-ozen
@ali-ozen 3 жыл бұрын
Great tutorial. I have one question. How can we use "sail commands" in vscode? It says: "Command 'sail' not found". But powershell works like a charm. Anyway i want to execute sail on vscode. I am stuck, any help :/
@Dogcomp
@Dogcomp 3 жыл бұрын
if you run "code ." in the laravel project root, you can open VS Code with WSL connection, in the Terminal of VS Code, you can run "sail up -d" you can see "[WSL: UBUNTU]" on the VS Code project tree You can read about my article for the WSL & VS Code integration blog.devgenius.io/kickstart-your-laravel-web-app-using-laravel-sail-30276265e588#4944 Please Subscribe my channel and tell me what you'd like want to watch... 👍
@ali-ozen
@ali-ozen 3 жыл бұрын
@@Dogcomp i did this already but vscode terminal still not work :( Should i change default vscode terminal?
@Dogcomp
@Dogcomp 3 жыл бұрын
@@ali-ozen if you try "./vendor/bin/sail up -d" is it working ?
@subhamchhetri5541
@subhamchhetri5541 2 жыл бұрын
how do I create multiple more projects?
@Dogcomp
@Dogcomp 2 жыл бұрын
you may watch my another video for hosting multiple project: kzbin.info/www/bejne/hGTYh4htidRleMU
@samuelrickoperdanaputra408
@samuelrickoperdanaputra408 3 жыл бұрын
Hi! I already setup the laravel sail at my wsl2, but why it's little bit slower than I expected. The folder project is already inside the WSL2. Have you any suggestion for that's problem?
@Dogcomp
@Dogcomp 3 жыл бұрын
Is your Windows 10 updated to the latest build? You may reinstall the WSL2 and Docker to the latest edition and remember to check _wsl -v -l_ make sure it is running on WSL2. the file access is only fast within the Linux Filesystem. For Windows to WSL, it is still slow. Read the Microsoft post: docs.microsoft.com/en-us/windows/wsl/compare-versions You may read my article about speed testing... faun.pub/why-am-i-moving-away-from-homestead-for-laravel-sail-b8140b7f6f7e
@chengweiyap9518
@chengweiyap9518 2 жыл бұрын
awesome
@nadiaamouee8199
@nadiaamouee8199 2 жыл бұрын
after i run sail up i get the error docker is not runing but it is running in backgrount!
@Dogcomp
@Dogcomp 2 жыл бұрын
Maybe you should try to clean install the docker and the wsl2 learn.microsoft.com/en-us/windows/wsl/troubleshooting
Laravel Sail - Docker without docker knowledge
17:27
Bitfumes
Рет қаралды 25 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Getting Started using Laravel Sail for Docker on WSL 2
14:49
Beachcasts Programming Videos
Рет қаралды 9 М.
Up And Running with Laravel Sail
18:46
Codecourse
Рет қаралды 22 М.
Laravel with Docker
18:27
Scrypster
Рет қаралды 106 М.
Easily deploy a Laravel application with Docker
21:21
Andrew Schmelyun
Рет қаралды 91 М.
Docker Tutorial for Beginners
56:04
Programming with Mosh
Рет қаралды 2,7 МЛН
Laravel 8 REST API With Sanctum Authentication
54:13
Traversy Media
Рет қаралды 551 М.
Setup Zscaler Indexing tool on Windows HyperV
25:12
Pisassom Juntongnim
Рет қаралды 170
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41