Upload laravel project to a VPS, using Nginx, without using Git

0

I have a question, I searched Google and I can not find a convincing answer, I have a VPS, the Nginx server is already configured, I was able to start a page with Laravel and I could access it from the internet using a domain, the problem is in which my developments on Laravel I will do on my PC, I have been researching and apparently it is necessary to use a Git repository to upload my changes in my projects and once being there I get them on my server, but I would like to know if it is feasible manually upload the folders every time I go to perform an update, ie delete the entire Laravel folder from my server and upload the updated from my PC, I would like to know if there would be problems doing that.

    
asked by Carlos Daniel Zárate Ramírez 25.10.2018 в 03:59
source

1 answer

0

Well, not necessarily, just create an ftp connection or an ssh, whichever is more your preference, in particular I use an ssh to use the command console and be able to run directly on the vps artisan commands.

Now the way to work:

-I use visual studio code with the ftp-simple extension, you have to configure the connection so that it is saving the changes directly on the server.

I leave the link of the extension.

link

To open the settings just press ctrl + shif + p and in the little window that appears, put ftp-simple and select the option that says config in the page that opens you you have to put the data of your ftp connection

[
    {
        "name": "Nombre de tu coneccion",
        "host": "tu dominio o el ip de tu dominio", (si no sabes como obtenerlo le el apendice)
        "port": 'puerto,
        "type": "tipo de conexion",
        "username": "usuario",
        "password": "contraseña ",
        "path": "El directorio donde esta almacenado tu proyecto",
        "autosave": true, // si quiere que auto guarde sin preguntar
        "confirm": false // si quieres que no aparezca la el cuadro de dialogo diciendo que se va a modificar el archivo
    },

]

Now to start the connection just press ctrl + shif + p and in the window type ftp-simple and choose the option that says remote-directory open to workspace

And ready.

appendix

If for some reason you can not connect directly to the ip you can ping your domain on this page.

link

or directly in your console just put

ping tu-dominio.com

and precionas enter, that will give you the ip of your domain

If you do not want to use visual stuido code, you can use any other editor, just google how to connect from ftp or ssh.

I use as I already commented visual studio code, and on puty I use my ssh connection to run artisan commands or nodejs command (webpack)

    
answered by 25.10.2018 в 04:14