Setup automated server deployment using only Git hooks | Programylis

preview_player
Показать описание
Tired of the manual deployment process for every update to your code? Now automate the boring deployment process using just Git hooks. Traditionally the deployment process includes - SSH into server, upload new version using ftp or pulling from version control, then build the app and then restart the server. With Git hooks, and git remote you just have to use one command
'git push production master'
to take care of all the deployment process. Learn how to automate this stuff from this video taking advantage of git remote, bare repository and git post-receive hook.

Follow me on:-

Timestamp:-
00:13 Prerequisite and setup
01:08 Setting up SSH config
03:06 Setting up bare repository
07:08 What is git directory and working tree
10:15 Setting post-receive hook
12:31 Final testing

----------------------------------------------------------------------
Credits:-
Intro - Adobe Spark
Special thanks to our video editor - Mayank Jain (mojo), without whom this video wouldn't have been possible
Рекомендации по теме
Комментарии
Автор

Really great dude, explained the whole hooks concepts and CI pipeline perfectly

__anime__sssh__
Автор

I could definitely use this in one of the projects I'm working on. Thanks for the thorough explanation!

AdityaChandak
Автор

Thank you for the neat explanation! This is very helpful

allandhirmegharaj
Автор

Very complete demonstration !!! The cleared demonstration I founded on YouTube. Thanks a lot !!!

nicoetnga
Автор

Very simple method and easy to understand. Thank you sir.

sohammjoshii
Автор

This video is extremely helpful, thanks for the time you spend making it!.

FredySandoval_
Автор

Really nice explanation. Great job. Keep up the good work!!!!

kisshorikulkarni
Автор

Clear and an elegant tutorial. Thanks.

AjoykarmakarReal
Автор

Thank you man. Clarified it well. How do you manage for multiple servers? Could you share some resource?

sanathkumar
Автор

At my company. We dont use any branches. Directly push to origin main. And the code also updates in github repo.
Can you make a video on how its done?

dawnstar
Автор

wow! you are a great teacher! keep it up!!

Wuy are we using pm2? can we instead use npm start ?

dayumnson
Автор

Thank you for the neat explanation! This is very helpful

SalmanKhanCodingboy
welcome to shbcf.ru