Deploy Laravel Applications to Hostinger Cloud Hosting
HTML-код
- Опубликовано: 30 июл 2024
- Special thanks to Hostinger for sponsoring this video. Use code CODEWITHDARY to save another 10% on top of all ongoing discount promotions on the website of Hostinger right here: www.hostinger.com/codewithdary
Hostinger is an incredible web hosting provider where you can set up shared hosting, cloud hosting, VPS hosting, email hosting, and SSL certificates. Hostinger has made a name for itself due to its fast load times, simplicity, free domains, and powerful servers. On top of that, Hostinger is offering a Black Friday deal where you could get your shared hosting for only $ 2.49. On top of that, Hostinger is even offering free domains and SSL certificates on 1+ year plans.
This video will show how you the advantages of Hostinger, the available cloud hosting packages, the setup of Cloud Professional, and domain registration. Then at the end, we will be looking at how easily developers cloud deploys a Laravel 9 application on Hostinger its Cloud Professional services.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary/larav...
📋 Table of Content
00:00 - Introduction
03:46 - Available Cloud Hosting Packages
07:06 - Setting up Cloud Professional + Domain
19:09 - Cloud Deployment Review + Outro
#hostinger #laravel #cloud
For Laravel 10 and up, use the composer2 command instead of composer to prevent errors :)
Amazing, man! I have been looking for this for soo long. You saved me 👊🏾❤
Glad I could help Lucas!
I'm at Hostinger , shared hosting premium with adittional 3 domains. Works intuitive and the H-panel(control panel)has everything you can possibly need. Support via chat can be slow sometimes but they always respond in reasonable time. If you're a dev you should not have many issues doing things there but even for beginner I guess it works great (wordpress intergration etc). The pricing in this time is really good , so be fast ;)
Oh wow that's great Jos. I've also seen tons of resources available so that's a good thing too.
Great video! Can't wait to host my first application with hostinger, your video is def a life saver.
Great to hear!
Man, you saved my life today! Thank you
You are welcome! :)
Thanks Man! I have learnt a lot.
Glad to hear it!
Thank you so much Dary..
Can you talk about cron jobs? like for example if we're queuing the email verification notification, and we want to keep the queue:work on all the time to send emails ...
Thank you for the great tutorial Teacher Dary!
from your beloved student.
You're very welcome my friend!
thx it helps to me!
Thank you very much Code With Dary!
Thank you for watching Jessie!
@@codewithdary New subscriber here. 😊
this would be a huge help! Thank Youuuu so much
Awesome! Happy ro hear :)
@@codewithdaryHow about react laravel app. Thanks
Obrigado amigo! ajudou demais!!! Sucesso sempre
When I bring some Changes in github reposeitory that will be effect on live site and that will show in live domain the recent changes?
or Not please give me little bit information.
Amazing video!
You are so kind, thank you!
your Video has been of great help, Hostinger is king
They damn are!! Thank you so much :)
Great video !!!
Thanks!🙏🏽
Great tutorial.
Can you explain me how can I automatically upload files to Hostinger with CI/CD after push on main branch ?
thanks man , can you please tell us how ro run npm run build
Hello Dary,
Great video. Learned a lot from the video. The .httaccess file you just showed here is a lifesaver for hosting laravel applications on any shared hosting
Thank you for letting me know and I'm very happy it helped you :)
Hostinger is also available in Indonesia too! I'm surprised since most International shared hosting provider only care to place it in Singapore to cater SEA Market.
Oh wow I did not know that! Love to hear it :)
Thank you 🙏
Thank you for watching Chris
Thank you dude... you helped me so much. question: deploying new changes will be using ssh too ?
Thank you for watching. And the answer to your question is yes! :)
how about the npm run build?
Thanks very much Sir 🗿
Most welcome buddy! :)
Hello!! Great video. One question. Do I have to follow the same steps to deploy the App if my GitHub Repository is Private?
You do need to add the ssh when working with private repositories. Not needed if the repository is public.
A very nice video by the way
Thank you
How to open git using server?
Hi Dary,
How to deploy laravel inertia with react on hosting?
Is it possible to deploy laravel inertia with react on a hosting provider like hostinger?
Have you deployed it yet?
Hi Dary, love your videos, can you do a separate video for deploying laravel rest API in a hostinger subdomain.
Thank you 🤞😁
Interesting topic for in the future!
Hi Dary, Thanks for the great video(s)! As I followed this tutorial everything went well, except when I went to the site, it was unable to find the vite manifest file (Laravel 10). Any advice? Thanks again!
That happens on localhost too, because you need to run npm install & npm run dev :)
I tried but it appears that npm is not installed Hostinger
@@gregherrick4013 Hi, you need to run the command 'npm run build' on your local machine. This will create a folder called 'build' inside the 'public' folder of your project. Once that's done, you can simply copy and paste that 'build' folder to your production environment.
@@krakerbrain Thanks so much. I actually did just that and it resolved the manifest issue but I could not get the css to load properly...
How to setup job, thks
Can hostinger host a Nova project? Just viewed your great course on Nova.
Definitely. Nova is eventually build in Laravel code.
I have multiple website to host how do i deploy it .? And both of them use different php versions
Well that requires a full video haha..
Hello dary
Thanks for the video
I have multiple websites on hostinger
Every time i push new changes on the repo i open the ssh then going to the project folder and pull the changes
I tried to search about any way to run git pull on the server or something like this to pull the changes automatically but i didn't find any thing
Can help me with this
try Laravel Forge
why do we upload our compress project in the first place
can you make another video on how we can create a subdomain and upload another laravel project there please it would be really helpfull
Definitely something I would do in the future!
Hello, in my hostinger hosting the composer update does not work, what to do?
I need to know what it returns I don’t magically know what’s not working, please share the error or response the next time.
Why hostinger is not catch {{ asset('' ") }} with public link. I have to put it in this way {{ asset(''public/...") }}.
By default, the asset function in Laravel should generate URLs that point to the public directory, which should be the root directory of your web server. However, if your Hostinger file structure is different from the default Laravel structure, you may need to adjust the asset function to generate URLs that point to the correct directory.
Life Saver
Thank you
I love you for the .htaccess file
Thank you
best of the best
You are :)
can hostingers run npm run build? in CLI
Node.js is not supported on Shared and Cloud hosting packages. You can use their VPS services for that ;)
laravel 10 not working => requires composer-runtime-api ^2.2 -> no matching package found
same problem with me, when i try to composer self-update --2
it returns Segmentation fault (core dumped)
@@CheezNutz did you find the solution ?? I'm facing the same problem
@@ziad114 use: composer2 instead of composer :)
tell about laravel 9
What do I need to tell? :)
@@codewithdary your deployment method not working with laravel 9 on hostinger. can you show for laravel 9 ?
@@vaidicyoddha definitely working with Laravel 9 :)
@@vaidicyoddha could you tell me what step is missing for Laravel 9 then? Since all these steps are exactly the same for Laravel 8.
@@codewithdary i don’t know why, but your method working with laravel 8 but not with laravel 9. any ways I’m trying this again let see.
i think that issue is with .htaccess file.
Thanks, I applied what said and I got error 404😏
Something is wrong in your .htaccess file or your routes are not working correctly :)
@@codewithdary indeed and I fixed it, thank you for your reply🥰