Laravel Sail Tutorial - First Party Laravel Docker Development Environment

  Рет қаралды 60,995

Program With Gio

Program With Gio

Күн бұрын

Пікірлер
@TheSebdizzle
@TheSebdizzle 3 жыл бұрын
Thank you so much Gio! I was literally red with frustration trying to figure out the Windows installation off the Laravel website. This video made it look so easy, glad I found it! You gained yourself a subscriber!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome. Happy to know that this tutorial was helpful. Thank you 🙌
@manoj.kiran.a
@manoj.kiran.a 4 жыл бұрын
Thank you for this video sir. I have been trying to setup sail in my windows machine for past 2 days but I wasn't able to complete the setup. But after watching your video I was able to run sail in my machine. Thanks a lot sir.
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
You're welcome. Glad it was helpful 👍
@Cashandrick
@Cashandrick 3 жыл бұрын
Thank you so much! You really saved me from giving up !
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome. Glad it was helpful
@truthteachers
@truthteachers 3 жыл бұрын
You should have given up. Laravel is an overloaded piece of mess.
@Zubbee
@Zubbee 2 жыл бұрын
Found this video after getting to the place I need laravel in the Learn Php the right way course. I think this will help cause I wasn't sure what directory to run laravel on.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Awesome 👍
@felipeortiz483
@felipeortiz483 3 жыл бұрын
Thank you from Chile!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome
@kickass1179
@kickass1179 3 жыл бұрын
I also have the "Docker is not running" issue, but I am opening the "Bash on ubuntu on Windows" terminal because my Powershell doesn't resemble your powershell at all, where I can choose Ubuntu 20.4....HELP???
@kickass1179
@kickass1179 3 жыл бұрын
OK, I've got it...so I needed to download Windows Terminal (powershell was misleading)...Thanks me! You're welcome me!!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@kickass1179 glad you got it working. What version of windows are you on? It usually comes with terminal/powershell out of the box.
@kickass1179
@kickass1179 3 жыл бұрын
@@ProgramWithGio Windows 10 Pro, version 2004...thanks very much for this tutorial...I was struggling for many days to make this work...kudos! and thanks for answering so quick, subscribed!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@@kickass1179 thank you 🙏
@DungHoangTri
@DungHoangTri 2 жыл бұрын
Love this video!
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you 💙
@DiegoAlvarez-to9wj
@DiegoAlvarez-to9wj 3 жыл бұрын
Thank you!! Really help me!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome
@wormy_coder
@wormy_coder 7 ай бұрын
Great Work
@ProgramWithGio
@ProgramWithGio 7 ай бұрын
Thanks
@kEzO9O
@kEzO9O 3 жыл бұрын
Awesome!
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Thanks!
@versobyte6150
@versobyte6150 4 жыл бұрын
Awesome video
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
Thanks
@dontysk
@dontysk 3 жыл бұрын
I've tried to update the "laravel.test" service name to "app", but when I do I got an error. Papixulo-MacBook-Pro:example-app r0b$ sail artisan sail:publish ERROR: No such service: laravel.test
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Strange. I don't work with Mac so I'm not sure. Why or how did you update laravel.test?
@bevedel
@bevedel 5 ай бұрын
really helpful. Thank you.
@ProgramWithGio
@ProgramWithGio 5 ай бұрын
You're welcome
@saravanasai2391
@saravanasai2391 2 жыл бұрын
Again a great tutorial.... But how can i access the mysql database of that container sir..
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thank you. Do you mean access the database through laravel/database tool or access the container itself? If you want container access you can use docker exec command, otherwise you can simply connect to the database from laravel, the DB_HOST would be the container name for the db
11 ай бұрын
why I can't see ubunut 20.0.4 options in windows terminal? docker version is 4.26.1
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
Not sure to be honest
@starinformatik1087
@starinformatik1087 3 жыл бұрын
Please make a video on how to deploy in production environment
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
Thanks for the suggestion. Going to do that soon
@jahadempire7934
@jahadempire7934 4 жыл бұрын
Does anyone experience this error? I'm using WSL 2 The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
Is your code on WSL2 or is it on your local drive? Try updating permission manually one time using chown
@ahmedhabeeb2499
@ahmedhabeeb2499 4 жыл бұрын
thank you man that was helpful
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
You're welcome 👍
@faizanshakil2775
@faizanshakil2775 11 ай бұрын
i have installed laravel through sail but how can i open files in PHPStorm ?
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
find the folder where it was installed & open it. Should be under the linux distro you are running if you are on wsl
@onnewf9288
@onnewf9288 3 жыл бұрын
thank you sir but i have problem why is my installed distro didn't appear on docker setting ? i already install wsl2 , ubuntu 20.04 and set wsl2 as default
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
hard to say, it should show under Resources -> WSL Integration. How did you install ubuntu, maybe some step was missed while installing ubuntu distro
@StephenAinsworth1
@StephenAinsworth1 2 жыл бұрын
Don't know why but I had to run the installation through powershell, didn't work through terminal (permission denied)
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I did it using powershell as well in the video. The terminal was opened on the linux distribution from the powershell.
@code.with.martin
@code.with.martin 4 жыл бұрын
Hi, great video! I have question. What about cooperation WSL 2 with PHP storm? In my case it is to slow, so I have to use VScode with remote WSL, that works good for me.
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
I didn't notice that much slowness on phpstorm on my side. Though it's known that WSL is slower for sure and works well with VScode
@emmiewallace84
@emmiewallace84 3 жыл бұрын
Love this!! I’m starting a new laravel project with work soon and currently we have custom docker setups so I’ll be giving this a try! I hope your keeping well?
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
That's good to hear. I'm very well thank you & hope you are as well 🙌
@TheArmanist
@TheArmanist 2 жыл бұрын
Thanks for the great explanation, however I could not see how did you open the project in your PhpStorm editor (or any editor), because it's a problem now for me since the project files are inside the docker container and you can't reach to there.. The Laravel documentation says to use Visual code with remote development plugin to edit the files... and it's easy to open the project with VS Code from the terminal by typing "code ." However I don't want to use VS code and prefer the PhpStorm.. (actually I'm on Netbeans right now) but anyways.. the point is how to open the project which is inside the docker container with any IDE?
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You put your source code in WSL2, and you open the folder in IDE the same way you open any regular folder. The folder structure for WSL2 I think is in \\wsl$\YOUR_LINUX_DISTRIBUTION\home\YOUR_USERNAME\YOUR_PROJECT_SOURCE For example for me its \\wsl$\Ubuntu-20.04\...
@TheArmanist
@TheArmanist 2 жыл бұрын
@@ProgramWithGio Thank you very much for quick response.. for some reason my IDE could not access to the wsl$... but once I have created shortcut of that folder it was able to..
@TheArmanist
@TheArmanist 2 жыл бұрын
@@ProgramWithGio looking forward to see new videos in channel about laravel sail + octane
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
@@TheArmanist You're welcome
@franknstein2301
@franknstein2301 4 жыл бұрын
Thanks!
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
You're welcome
@ExtraKanin
@ExtraKanin 3 жыл бұрын
you just made everything easier.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Glad to hear that 🙌
@miftakhusysyiroth9301
@miftakhusysyiroth9301 4 жыл бұрын
I have problem with message "./vendor/bin/sail: line 42: docker-compose: command not found" and line 44,253 with same message. I don't know what shoul I do :(
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
Are you on windows or Linux? Make sure you have docker & docker-compose installed.
@miftakhusysyiroth9301
@miftakhusysyiroth9301 4 жыл бұрын
@@ProgramWithGio I'm using ubuntu. Thanks, I will try again
@halzagh2891
@halzagh2891 3 жыл бұрын
how can work with Existing project from lochost ( wamp - largon - etc ) or github ? and how can replace mysql with mariadb ? thanks for time
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You can just install the package on an existing application & follow the steps. Here is the link to the docs for that: laravel.com/docs/8.x/sail#installing-sail-into-existing-applications To replace MySQL with mariadb you need to change the container in docker-compose.yml
@fernastereo
@fernastereo 3 жыл бұрын
Hi, thanks for this tutorial, it was very helpful to me, everything worked fine. However, I have a question, when I try to run any artisan command with sail, I get this: Command 'sail' not found, but can be installed with: sudo apt install bsdgames What am I doing wrong?
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
You're welcome Fernando & thank you. Try ./vendor/bin/sail up You might need to set up bash alias, check docs here: laravel.com/docs/8.x/sail#configuring-a-bash-alias
@developerstutorial8821
@developerstutorial8821 2 жыл бұрын
I am having issues in using git in linux container today, do i use my windows tortoise svn or i should use linux install git.
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
You can install git. Why do you need git in docker container?
@gboquizo
@gboquizo 4 жыл бұрын
Hi, thank you for your video. I have a problem. When I run sail up, localhost is throwing a ERR_EMPTY_RESPONSE. Any idea? Thanks in advance!
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
Hard to say, check this out, it might help stackoverflow.com/questions/46184173/err-empty-response-from-docker-container It could also be related to the memory limit. Check this also: stackoverflow.com/questions/42248306/laravel-project-err-empty-response Hope it helps. I haven't seen that error myself.
@dimas.subaktianto
@dimas.subaktianto 2 жыл бұрын
why your terminal has multi-tabs?
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
I'm sure yours has it too 🙂
@latlov
@latlov 4 жыл бұрын
1.- Could Spatie's Laravel Backup work here on Sail? 2.- Does Laravel schedule works on Sail?
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
I'm not familiar with spatie's package so not sure about that. Laravel's schedule should work I think. You can customize it the way you want, add containers, etc
@anteqqq1
@anteqqq1 3 жыл бұрын
Does the file with project exists on that ubuntu or its rechable in management files on windows?
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
Depends on how you set it up, I have it set up where project files exist on windows, though this can be slow. So having them on ubuntu is faster for sure. I personally don't work on windows much and haven't had the need to put the files anywhere else but the windows itself, but I did notice that it's a bit slower.
@anteqqq1
@anteqqq1 3 жыл бұрын
@@ProgramWithGio but how does that curl command points that i want It in windows folder , thats the thing i dont understand
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
@anteqqq1 if you run it from Windows terminal then it will put it on windows I think, if you run it from Ubuntu distribution then it will put it there. It's the matter of where you run it from.
@des5011
@des5011 11 ай бұрын
Many thanks
@ProgramWithGio
@ProgramWithGio 11 ай бұрын
You are welcome
@veggiewear5419
@veggiewear5419 4 жыл бұрын
hi great tut, can we run sail commands in vs code? Thanks
@ProgramWithGio
@ProgramWithGio 4 жыл бұрын
Thanks. I haven't tried vscode, I use phpstorm & was able to run commands in phpstorm. I think you should be able to
@mikebailey783
@mikebailey783 4 жыл бұрын
VSCode has a pretty great terminal, which is perfect for running commands on your local project folders and your Docker containers.
@sale7680
@sale7680 2 жыл бұрын
Bravoooo
@ProgramWithGio
@ProgramWithGio 2 жыл бұрын
🙌🙌
@two-zero
@two-zero Жыл бұрын
Thanks
@ProgramWithGio
@ProgramWithGio Жыл бұрын
No problem
@wormy_coder
@wormy_coder 7 ай бұрын
You give me overview about Laravel Sail
@ProgramWithGio
@ProgramWithGio 7 ай бұрын
Happy to hear
@MadalinIgnisca
@MadalinIgnisca 3 жыл бұрын
Docker today auto enables all related WSL2 stuff.
@ProgramWithGio
@ProgramWithGio 3 жыл бұрын
👍
Laravel Sail - Docker without docker knowledge
17:27
Bitfumes
Рет қаралды 25 М.
Create a local Laravel dev environment with Docker
14:48
Andrew Schmelyun
Рет қаралды 199 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Laravel Docker Course | Complete Laravel Dockerization
43:31
Emad Zaamout
Рет қаралды 87 М.
Setting Up Laravel with Sail | Learn Laravel The Right Way
7:19
Program With Gio
Рет қаралды 8 М.
Laravel with Docker
18:27
Scrypster
Рет қаралды 106 М.
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 87 М.
Easily deploy a Laravel application with Docker
21:21
Andrew Schmelyun
Рет қаралды 91 М.
What is Laravel & Why You Should Learn It | Learn Laravel The Right Way
6:58
Up And Running with Laravel Sail
18:46
Codecourse
Рет қаралды 22 М.