J
J
jazzus2019-02-02 04:01:08
System administration
jazzus, 2019-02-02 04:01:08

What tools to use for Laravel + Git production?

I don't understand anything about VPS administration. There is a site on Laravel + Vue. During development, uploaded versions to Bitbucket. Working with the database only through migrations. I programmed under Windows, so sudo commands, etc. for me a dark forest. Terminal only used for artisan and git. Generally. In the process of googling, I formed the following concept:

1) Vps, not a virtual host, so that you can install anything (Composer Yarn Nodejs, etc.).

2) Perhaps advise hosting with these libraries already installed? I found these options:
https://www.cloudways.com/en/laravel-hosting.php
https://elasticweb.org/ru/page/laravel-hosting
Write if anyone used it.

3) Apache or Ngnix? On lok. the server is written now Apache..

4) What operating system should be? Of course, I'm better off with Windows, I don't know Ubuntu at all, and I've never had problems in development (which they talk about everywhere) under Windows (although I used LAragon). But as I understand it, VPS is not a computer and clicking the mouse will not work there)) Or is Windows Server normal?

5) Use Deployer https://github.com/deployphp/deployer/
As far as I understand, this is a php script that will download the latest version + migrations from git. Then create tables and substitute the latest version for the current one. Those. I add changes on localhost. Then I send it to git. Then I run the deployer on the server. And it installs the latest version. I correctly understood the process of working with this script?

With such a stack, I want to organize the work. I would be grateful for opinions and recommendations.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sklyarov, 2019-02-02
@jazzus

More recently, I faced the same task of deploying a project on a server.
I will briefly describe how this is done. But first, a useful link that will help you understand what you generally need to do: link . I must say right away that without having any experience at all, with the help of technical support from the company where the server was bought, I fiddled with all this for about a day and a half. Therefore, if time is important, I recommend immediately finding a person who will do it for you.
So, in order:
1. As mentioned above, a server on Windows is not ok, only Linux.
2. The whole installation on the server is about the same as on the local computer where you develop.
2.1. First install curl (which is most likely installed)
2.2 Install Composer (you write just a couple of commands)
2.3 Install Git, Node, NPM (you also put everything in 1-2 commands)
3. Fuss with creating a user, setting up rights to work with the deploy service, and so on.
4. Installing the deployment service itself. I am using deployer .
5. Create ssh keys for your user
6. Connect these keys in your github or bitbucket profile.
7. Deploying the deployer in a folder and specifying the settings.
8. Actually the deployment itself.
See the link above for a guide on how to do it. Additionally , a video that can help you figure out what and how.
I have ispmanager installed on my server, so most of the problems with setting up web hosts, root folders, etc. can be solved simply by correctly creating a domain with the necessary settings.

K
Konstantin B., 2019-02-02
@Kostik_1993


What Windows for PHP are you going to install, no Windows, only Linux, in your case Ubuntu is best . You need to understand what and how it works. If you don’t understand, then take a VPS with a control panel, but you don’t care to install any node, yarn or npm through the console.
You can write to me in the profile contacts there is data, I’ll help you figure it out for a fee

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question