Тёмный

Continuous Deployment using GitHub Actions | Auto Deploy MERN Stack | AWS EC2 | CICD Pipeline 

Mahesh Kariya
Подписаться 9 тыс.
Просмотров 58 тыс.
50% 1

In this tutorial we are going to create CICD Pipeline for Full stack project In order to setup continues Deployment from GitHub to server.
Once you setup CICD Pipeline then you don't need to worry about deployment after that you just need to commit changes to GitHub it will automatically build and deploy your changes.
We Will Also use AWS EC2 Instance and also learn how to setup inbound rules to Allow ports to communicate with server.
#AWS #GitHubActions #CICD

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 95   
@rog0079
@rog0079 Год назад
Thanks Mahessssssshhhhh Dal..... :D (kidding :P, great video by the way!)
@maheshkariya
@maheshkariya Год назад
Thanks 😅
@adesojialu1051
@adesojialu1051 8 месяцев назад
Thank you for this, please could you do another approach using kubernetes and docker for a react frontend and express backend with postgres database
@okamimoushiyou
@okamimoushiyou Год назад
Awesome information, thank you! Although I don't think the "npm run build" is necessary on the front end since there's already a "npm run build --if-present" before that that builds a project as long as there's a "build" script in your package.json (which there is, otherwise you wouldn't be able to run npm run build).
@maheshkariya
@maheshkariya Год назад
Thanks and don’t forget to subscribe if you haven’t already Okay 👍
@prasadlakshan5407
@prasadlakshan5407 Год назад
Thanks for the video, One question I have Who we manage the env of the backend with this manner
@shubhamverma1407
@shubhamverma1407 Год назад
bro this is amazing, to the point, no bullshit
@maheshkariya
@maheshkariya Год назад
Thanks 🙏
@sefakpsz
@sefakpsz 9 месяцев назад
You are the best. God bless you!
@maheshkariya
@maheshkariya 9 месяцев назад
Thanks 🙏
@mdshadab3470
@mdshadab3470 Год назад
Exactly the video I was looking for great explanation bro🔥🔥
@maheshkariya
@maheshkariya Год назад
Thanks
@vikasrathod6681
@vikasrathod6681 6 месяцев назад
Where is the explanation?
@full.stacked
@full.stacked Год назад
Nice end-to-end tutorial. Thank you
@maheshkariya
@maheshkariya Год назад
Thanks
@learnsmart1812
@learnsmart1812 2 года назад
Thanks for clear explanation. Really nice👍
@maheshkariya
@maheshkariya 2 года назад
You are welcome and don't forget to subscribe if you haven't already
@bharathkumar2007
@bharathkumar2007 Год назад
Fantastic tutorial, Thanks Mahesh.
@maheshkariya
@maheshkariya Год назад
Thanks
@hegelchambamorocho250
@hegelchambamorocho250 2 года назад
It helped me a lot, thank you very much 👍
@maheshkariya
@maheshkariya 2 года назад
Thanks and don’t forget to subscribe
@bubonik4957
@bubonik4957 Год назад
Thank you, brother, very educational!
@maheshkariya
@maheshkariya Год назад
Thanks
@RaviKumar-uq4ri
@RaviKumar-uq4ri 2 года назад
This was good Example thank you
@maheshkariya
@maheshkariya 2 года назад
Thanks
@deepaaa5215
@deepaaa5215 Год назад
thnks for this awesome tutorial @mahesh
@user-en6pq6bo4p
@user-en6pq6bo4p Год назад
This video is amazing, Thankyou!
@maheshkariya
@maheshkariya Год назад
Thanks
@tyscyre2256
@tyscyre2256 Год назад
Thanks for the video. I am using the free tier on AWS and whenever I create more than one runner , the first one goes offline . Is there a way around it?
@adesojialu1051
@adesojialu1051 8 месяцев назад
increase your instance size to t3.medium
@neerajarao7333
@neerajarao7333 Год назад
Thanks for this vedio. However can u make a updated vedio with Basic MERN THAT INTGRATES EVERY STACK (MERN) end to end so that itwould be helpful where changes needed while integrating frontend to backend .
@3bkareeno
@3bkareeno 2 года назад
This is really helpful. Thank you.
@maheshkariya
@maheshkariya 2 года назад
Glad it was helpful! And Don't forget to subscribe if you enjoyed Okay
@AndreasEngly
@AndreasEngly Год назад
Thank you for a thorough tutorial. I face one issue however. When I try to deploy my frontend, "Run npm ci" keeps running. Eventually it disconnects. Any suggestions?
@saisankethravva5706
@saisankethravva5706 Год назад
I am also facing the same issue, can anyone please help
@adesojialu1051
@adesojialu1051 8 месяцев назад
me too@@saisankethravva5706
@fin31337
@fin31337 2 года назад
dude, great tutorial, big thanks just curious, does your tab button broken?🙃
@maheshkariya
@maheshkariya 2 года назад
I don't think so
@tajihr
@tajihr Год назад
thank you for video! I have a question.. so I do not need to git clone when using github actions ? and if I already git clone and deploy the app, if I want to set up auto deploy with github actions, I need to remove the foler for git?
@vysakhrn4811
@vysakhrn4811 2 года назад
thanks man,thank u very much
@maheshkariya
@maheshkariya 2 года назад
Dont forgetto subscribe okay
@kedarshivshette5454
@kedarshivshette5454 Год назад
thanks, bro.. it was helpful. I have single repository for the frontend(react js) and backend(Springboot). how do I create .yaml file for frontend. does cd frontend && npm test works in yaml ?
@yichunqian
@yichunqian Год назад
did you solve this?
@mohithreddyvuyyuru
@mohithreddyvuyyuru 2 года назад
Reply fast AWS ssh client terminal was struck when the frontend nodejs.yml running and taking too much time at *npm run build --if-present*
@somunelavalli
@somunelavalli Год назад
@mohithreddyvuyyuru, Did you solve above issue ? if solved could you please help me now i am facing the same issue
@maheshkariya
@maheshkariya Год назад
Use t2.small or higher instances
@punittewani9255
@punittewani9255 2 года назад
My Backend is not working when i hit ip address with /api/ param it shows cannot GET / But particular API is present at my backend route file
@Willssucceed
@Willssucceed Год назад
Thnks bro. it is gud.. but you could be slow and can explain things why we doing it.
@maheshkariya
@maheshkariya Год назад
Thanks
@alrazy12
@alrazy12 2 года назад
Hi can you help me im trying to implement same example but getting an error exit with error
@adesojialu1051
@adesojialu1051 8 месяцев назад
how does .env file work here or it's not needed because of when an application is connected to postgres database
@arnavbansal4259
@arnavbansal4259 2 года назад
_work directory not shown after initiating the GitHub action runner on EC2
@maheshkariya
@maheshkariya 2 года назад
It will generate automatically once you commit something
@princearthur4868
@princearthur4868 2 года назад
Nice tutorial
@maheshkariya
@maheshkariya 2 года назад
Thanks
@muhammadshehroze6691
@muhammadshehroze6691 Год назад
I have done same but when it try to visit the URL it is showing not reachable. No nginx screen is displayed. ON terminal version is showing as nginx version: nginx/1.18.0 (Ubuntu)
@witchestify
@witchestify Год назад
hi sir, i havefollowing this tutorial, and when github action running it's job. It suddenly freeze and ec2 system checks said it's not reachable? do you know why?
@atulbhandari4268
@atulbhandari4268 Год назад
Nice
@maheshkariya
@maheshkariya Год назад
Thanks
@sksafikuddinkhan5935
@sksafikuddinkhan5935 Год назад
Hi bro, can you let me know, how to achieve CD with the help of actions
@sebabratakundu
@sebabratakundu Год назад
Nice example. But I have one concern. When the front-end build is running the website is not working. It means customer will going to face downtime. how can we prevent it?
@adesojialu1051
@adesojialu1051 8 месяцев назад
no
@adesojialu1051
@adesojialu1051 8 месяцев назад
I increased the instance size and the frontend and everything runs just fine
@TECHKMR-SOLUTIONS
@TECHKMR-SOLUTIONS Год назад
great
@maheshkariya
@maheshkariya Год назад
Thanks
@achyutghimire2266
@achyutghimire2266 2 года назад
you are refering to MERN... this project is not MERN.... can you actually work on MERN project which involves Mongodb/MYSQL database and where frontend and backend are actually talking to each other and not "DIVORCED" like yours ? I am able to create workflows like yours but I have not been able to do it for actual MERN, which made me land here... so hoping to get some help
@shivomsrivastava6540
@shivomsrivastava6540 2 года назад
Lmao "DIVORCED"
@gandalfg1479
@gandalfg1479 2 года назад
Hey! So at the 5th minute where u do sudo ssh -i ".pem" etc etc, it does not work for me. I get the error login as ubuntu rather than root. I cant find a solution online for this, so the rest of the video is useless to me as I cannot proceed. CAn u help?
@user-ti8sz5ps7r
@user-ti8sz5ps7r Год назад
why can't you combine CICD together??
@maheshkariya
@maheshkariya Год назад
That's what we did here
@fin31337
@fin31337 2 года назад
Why is sudo required to run the nodejs app?
@maheshkariya
@maheshkariya 2 года назад
Don't worry No need but pm2 I thing will run with sudo.
@sajidkhaki4561
@sajidkhaki4561 Год назад
@Mahesh Kariya I have done same but when it try to visit the URL it is showing not reachable. No nginx screen is displayed. ON terminal version is showing as nginx version: nginx/1.18.0 (Ubuntu)
@muhammadshehroze6691
@muhammadshehroze6691 Год назад
if u find solution then help me . i am also facing same problem.
@PixelPioneer-t3q
@PixelPioneer-t3q Год назад
This was educational but, i ran into a problem with the way you configure your workflow for your backend. The instructions you give in the YML file are wrong considering your express server does not run tests nor does it run build. the command for executing such command for me in particular is npm start. Now on the front end you must build before running but this is a huge step missed.
@maheshkariya
@maheshkariya Год назад
🙂
@dipanshugupta5578
@dipanshugupta5578 Месяц назад
How, and when did you added node.js.yml file there is no explanation of that one.
@maheshkariya
@maheshkariya Месяц назад
Ignore it
@muhammadsafvankv9394
@muhammadsafvankv9394 9 месяцев назад
i dont get a _work directory
@Gk_tcg
@Gk_tcg Год назад
Cannot perform an interactive login from a non TTY device
@Selvakumar-hd6zc
@Selvakumar-hd6zc Год назад
Hi Magesh, I have problem with codebuild when ever my code build has started my aws EC2 server connection is went to offline and the code build and push is not happening how can i resolve this issue any suggestion?
@maheshkariya
@maheshkariya Год назад
It’s mahesh
@somunelavalli
@somunelavalli Год назад
@Selvakumar-hd6zc, Did you find any solution for abovr you issue ?
@antonshliakhtin5490
@antonshliakhtin5490 6 месяцев назад
помогло!
@balasubramaniam7904
@balasubramaniam7904 11 месяцев назад
cannot see my output
@arnavbansal4259
@arnavbansal4259 2 года назад
How to set environment variables for backend?
@maheshkariya
@maheshkariya 2 года назад
I have showed in video, You just need to pass while using docker and you can access it by process.env else if you are not using docker just use dotenv npm package.
@arnavbansal4259
@arnavbansal4259 2 года назад
@@maheshkariya Is there any .config file for nginx where I can set environment variables for backend?
@maheshkariya
@maheshkariya 2 года назад
@@arnavbansal4259 Oh! Good one, You need to dig into ngnx docker doc to provide file to setup enviroments. seeps easy actually you can create custom file for env and you can pas path of your local in nginx while creating docker compose
@hemantkumar-ug7jx
@hemantkumar-ug7jx 11 месяцев назад
thanks a lot but react app nahi chal raha
@rhmtin
@rhmtin 2 года назад
Hi, if i using droplet in digitalocean, it’s same?
@maheshkariya
@maheshkariya 2 года назад
Yes 👍
@rhmtin
@rhmtin 2 года назад
@@maheshkariya Thank you One more thing, if I have multiple domains, how do I do that? For example in domain a for frontend and subdomain a for backend, and so on in domain b, c, etc. Can you explain? maybe in a new tutorial😁
@rishabhranjan5047
@rishabhranjan5047 Год назад
do anyone knows how to set up .env for this please give me a solution
@manshikumar8606
@manshikumar8606 2 года назад
Hi, I need help regarding my project for automating deployment. How can I contact you?