![]() ![]() Forget uploading via FTP, if you still do it. You will probably deploy changes by SSHing to the machine and running commands like git pull, php artisan migrate etc. For Windows users, I've also heard good things about Laragon. But don't worry, you don't need to install Linux or buy specific new computer - it all can be emulated with Laravel Valet or Laravel Sail. Notice: Linux-server is the reason I advise to use Linux environment on local computer, too. ![]() A lot of server providers offer this as a one-click install - see Digital Ocean example below: LAMP/LEMP stands for LInux (comes with server), web-server ( Nginx for "E" and Apache for "A"), MySQL database and PHP. In case of Digital Ocean it's called Droplet, Amazon AWS call it EC2 instance etc. But these are the parts that you need to prepare, in short: ![]() To be honest, I don't want to focus on this step too much, cause server preparation is not part of deployment. They have their own guides for Laravel projects. In 2018, I wrote a recommendation article for the server needed for Laravel projects. Prepare your dedicated server for Laravel Brief overview: Automated testing and continuous integration.Prepare your dedicated server for Laravel.In this article, we will cover these steps: Notice 2: this article was written in October 2018 and updated in August 2022, check for any updates to software and Laravel/PHP versions at the time you're reading it, IT world is constantly changing.Įnough formalities, let's dive in. Every team have their own way to deploy projects, so you may read different advice elsewhere. Notice 1: please take this article as personal advice but not 100% accurate process. You want to deploy your project to a dedicated server and not a shared hosting, meaning you have full access to the server via SSH.You already know Laravel and its artisan commands on at least junior level.In this article, I will assume two things: With a lot of questions asked, I decided to write this ultimate (hopefully) guide to deploy Laravel projects. ![]() There are a lot of courses and articles about coding but much less about putting it in production. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |