I
I
ildar-meyker2019-11-17 18:58:45
Laravel
ildar-meyker, 2019-11-17 18:58:45

How to deploy a site on laravel? What is the purpose of Maintenance Mode?

Now we are not talking about unzipping through .git and all sorts of other fashionable things. There is a common shared hosting. And you need to deploy a new version of the site about once a week. Now I'm drawing the most common algorithm in my head: archive the necessary files, upload them to the hosting, delete old files (remembering the configs), unzip the new one.
But is it all right? Laravel has a Maintenance Mode. It exists for what purpose? Is it only for working with the database or does it also have to do with deployment?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex Wells, 2019-11-17
@ildar-meyker

What is the point of thinking about deploying to shared hosting? No matter how you implement it, in any case, with the shered you will have a big downtime with each "deploy" and at one fine moment you will successfully break everything for several hours
. window. However, with such a "deploy" as yours, this is not an option.

K
Konstantin B., 2019-11-17
@Kostik_1993

Not using the git now is complete nonsense. On shared hosting, rergu, runs, timeweb has an SSH console and git, I know this 100% since I used it myself.
Maintenance Mode - this is the mode that is just needed for a simple deployment. It all works like this, do atrisan down, get updates from the git, run the composer, roll out migrations and do artisan up. All this time the site will be in Maintenance Mode, which means that instead of the site you will have a page on which it will be written that the site is currently being worked on or how you will do it

V
Vladimir Kokhan, 2019-11-17
@SkazochNick

Use PhpStorm IDE - there is a special feature there. You can configure so that files after saving will be updated on the hosting.
Others also have it - in Adobe DW, for example. I don't know about the rest, I haven't tried.

V
Vyacheslav Plisko, 2019-11-21
@AmdY

https://deployer.org/ he already has a recipe for laravel including. I wrote mine with pens under 4k, I don’t need to drag any npm and git to the hosting, I collected it locally, copied it to the server, switched the link to the new version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question