Deploy a website in a linux (ubuntu) server from github.

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello and welcome to the channel in this video I will show how to deploy a website to Ubuntu server from GitHub usually we use FTP application like filezilla to transfer the application to the server and then install it but instead of doing that what we are going to do is we will install and setup git into server there's any other public SSS key for the VPS which we will save in GitHub after that we will clone the repository from GitHub using its SSS key here I have a VPS inverter which is Ubuntu as the opening system and where I have already installed node.js npm and mongodb so let's get started first I will SSH into the server using an application called putty okay I mean now to install git I will run sudo apt install git to check if the installation is successful I will set the operation by git just test position now I will change the directory to the home directory then I will globally configure the username and email for game git a server is basically a computer that you have leased on a hosting company like digital Ocean or filter and you are operating it remotely using the terminal so treat it like any other computer give your email now to generate the SSS key run the following command SSS key gen et25519 Dash capital c VD inverted commas your email ID of course it will ask if you're okay with storing the key in the default location just press enter if you are okay with that then it will ask for a passphrase give one or you can do without giving it also but it is better to give one the SSS key will be stored in a file ID underscore 825519.pub.directory in the folder code.ss by default now so I will go to the directory in the root folder and then I will pass in the command him ID underscore ad25519.p.pov this is the file where the key is stored and beam is a text editor that comes pre-installed with Ubuntu then copy the SSS key go to GitHub then click on settings then click on accesss in gpg key indirect and interlection panel and paste in the key and click on ADD SSS key now copy the SSS key or the repository that you want to install now passing the command git clone the SSH key and a directory name where you want to install the project since he is a first time first time just passing years pass the pass phase okay the repository is cloned nose now since directory to deposit folder now I will install the application by npm install this will install all the packages now turn on the application run node server.js index.js okay the application is running at Port 8000 in our database connected now let's go to the browser okay I have two to one but you have to allow the eftpv firewall you have to allow 8000 let's see it again okay the application is up and running now I will install pm2 process manager that will keep on running the application application application is stopped sometime but to keep on keep the application keep on running you have to install pm2 process manager so in PM install process manager pm2 then I will again since the directory project folder now I will run the server.js file again but this time it will be pm2 start server.js okay the collection is running now now let me just go to my local machine and I will make some changes to the to my project okay since the font color from white to Orange then I will add the changes to the switching area and I will commit those changes now I am in my location okay and then I will post these changes to my guitar Repository master I've already seen instant remote supposedly passing the passphrase in the terminal IVF has to send this and merge them in my server Ubuntu server so gate pool origin master and enter the first phase again reload the pace okay let's change this incorporate now even if you make multiple changes to your project you can easily keep track of those changes any an integrate them to your website
Info
Channel: Dhriti
Views: 176
Rating: undefined out of 5
Keywords: Ubuntu server, Git, Github, Deploy
Id: aq6zoi1DPVg
Channel Id: undefined
Length: 8min 39sec (519 seconds)
Published: Wed May 03 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.