CI/CD Pipeline Using GitHub Action| Auto Deploy Nodejs API on AWS EC2 step by step in Hindi

preview_player
Показать описание
In this video we will see how to set GitHub Action for cicd with aws EC2 with an example of nodejs API in hindi
GitHub workflows
Cicd pipeline and auto deploy to AWS EC2
CICD pipeline for nodejs express application in hindi

We will Use github action to set up CI CD pipeline to Deploy your project to AWS EC2
Full guide to automatic deployment to AWS EC2 using GitHub Action with nodejs api as example in hindi

It will automatic test build and deploy to aws ec2 after every changes commit and merged

step 1-

login to aws console and create an ec2 instance

step 2-

Login to ec2 instance

step 3-

install nodejs and nginx

sudo apt update

sudo apt-get install nodejs

sudo apt-get install nginx

step 4-

push your projects to github

step5 -

create github action

it will create a yml file under .github/workflow

just edit yml file acording to your project

step 6-

set up github action on ec2

Not start with sudo

After GitHub configuration run this command

step 7-

install pm2 and run backend in background

npm i pm2 -g

step 8-

add the command in yml script of project to restart after every commit

step 9-

config nginx and restart it

Cd /etc/nginx

Cd sites-available

sudo nano default

location /api/ {

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

sudo systemctl restart nginx

#cicd #githubactions #github #ec2 #nginx #nodejstutorial
Рекомендации по теме
Комментарии
Автор

This is what, i was searching on youtube. luckily got this as recommendation. Great video and a great explanation. Thanks a lot.

ashutoshkumarmantoo
Автор

i think this tutorial basically got me a Cloud Intern job. thank you so much.

AnkurHyperce
Автор

One of the best video ci/cd with GitHub actions crystal & clear, Thanks

MViews
Автор

Fantastic way of teaching . cristal and clear. Please continue your journey . Best of luck🙂

asifrahman
Автор

This is gem video on internet thanks mam 😇

sanketkothiya
Автор

great work 🔥🔥,
from this video, no one needs any other explanation.

ashutos
Автор

Excellent tutorial just loved it🔥
Keep creating great tutorials on devoops

mdshadab
Автор

What a video, straight to the point..

rupeshjha
Автор

everything worked well just use "run - pm2 restart server"

sachinpunera
Автор

Excellent and clear -cut ! love the video

itsabhi.
Автор

Well Explained, Create videos like Load Balancing and cloudfront.

PrinceSingh-zbfn
Автор

Thanks for sharing this information in clear and simple way.😊

AbhiBhardwaj
Автор

Well explained ....Nice tutorial thank you so much ...

mradviktyagisupershow
Автор

Can someone help me please i have github action and there is SIT and UAT already present so my task is - create a branch for PRE PROD in github action how to do and what need to be configure there please help me guys

travelworld
Автор

mam please .ppk file se mujhe karna tha kyu ki me ek windows user hu to wahase me thoda samajh nhi paya but last tak dekha apka teaching style is very .ppk ke liye ek video banaiye kyu jyadatar windows user hi he 🙏🙏🙏🙏🙏🙏

mrdecode
Автор

i cant find _work folder inside action runner directory. help me out.

AllInOne-cshp
Автор

Very very useful information. Keep it up. Nice content 👍

vipinkumar-
Автор

does github actions require any other configuration for private repository ?

jigneshkumar
Автор

_work dir is not shown in action-runner folder

johnsnow
Автор

this is very useful and excellent video for those who deploy REST API on AWS, I have one Q my server file is ts instead of js how can we start aws server with pm2? my local machine start server with nodemon

BurakGlobeMax
welcome to shbcf.ru