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

Поділитися
Вставка
  • Опубліковано 3 лют 2025

КОМЕНТАРІ • 97

  • @rog0079
    @rog0079 Рік тому +5

    Thanks Mahessssssshhhhh Dal..... :D (kidding :P, great video by the way!)

  • @sefakpsz
    @sefakpsz Рік тому

    You are the best. God bless you!

  • @mdshadab3470
    @mdshadab3470 Рік тому

    Exactly the video I was looking for great explanation bro🔥🔥

  • @bharathkumar2007
    @bharathkumar2007 Рік тому

    Fantastic tutorial, Thanks Mahesh.

  • @shubhamverma1407
    @shubhamverma1407 Рік тому

    bro this is amazing, to the point, no bullshit

  • @full.stacked
    @full.stacked Рік тому

    Nice end-to-end tutorial. Thank you

  • @learnsmart1812
    @learnsmart1812 2 роки тому +1

    Thanks for clear explanation. Really nice👍

    • @maheshkariya
      @maheshkariya  2 роки тому +1

      You are welcome and don't forget to subscribe if you haven't already

  • @adesojialu1051
    @adesojialu1051 Рік тому +1

    Thank you for this, please could you do another approach using kubernetes and docker for a react frontend and express backend with postgres database

  • @prasadlakshan5407
    @prasadlakshan5407 Рік тому +1

    Thanks for the video, One question I have Who we manage the env of the backend with this manner

  • @deepaaa5215
    @deepaaa5215 2 роки тому

    thnks for this awesome tutorial @mahesh

  • @MohdAqib-b8g
    @MohdAqib-b8g Рік тому

    This video is amazing, Thankyou!

  • @hegelchambamorocho250
    @hegelchambamorocho250 2 роки тому +1

    It helped me a lot, thank you very much 👍

    • @maheshkariya
      @maheshkariya  2 роки тому

      Thanks and don’t forget to subscribe

  • @bubonik4957
    @bubonik4957 2 роки тому

    Thank you, brother, very educational!

  • @RaviKumar-uq4ri
    @RaviKumar-uq4ri 2 роки тому +1

    This was good Example thank you

  • @kasir-barati
    @kasir-barati 2 місяці тому

    Why did you use sudo, it works without one, does not it? Or at least it did for me.

  • @parrapaTh3Rappa
    @parrapaTh3Rappa 2 роки тому +2

    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  2 роки тому

      Thanks and don’t forget to subscribe if you haven’t already Okay 👍

  • @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

  • @221miteshdevganiya2
    @221miteshdevganiya2 2 місяці тому

    if i don't want to get 404 and 403 in server when pipeline is running in github action so it there any option ?

  • @tyscyre2256
    @tyscyre2256 Рік тому +2

    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 Рік тому +1

      increase your instance size to t3.medium

  • @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?

  • @adesojialu1051
    @adesojialu1051 Рік тому

    I increased the instance size and the frontend and everything runs just fine

  • @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 .

  • @adesojialu1051
    @adesojialu1051 Рік тому

    how does .env file work here or it's not needed because of when an application is connected to postgres database

  • @mohithreddyvuyyuru
    @mohithreddyvuyyuru 2 роки тому +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 Рік тому +1

      @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

  • @AndreasEngly
    @AndreasEngly 2 роки тому +2

    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?

  • @Gk_tcg
    @Gk_tcg Рік тому

    Cannot perform an interactive login from a non TTY device

  • @Willssucceed
    @Willssucceed 2 роки тому

    Thnks bro. it is gud.. but you could be slow and can explain things why we doing it.

  • @muhammadsafvankv9394
    @muhammadsafvankv9394 Рік тому

    i dont get a _work directory

  • @kasir-barati
    @kasir-barati 2 місяці тому

    I am getting a 404 error when I navigate to index. Anyone with similar issue? I did a quick search and it seems it is related to the subject of permissions. Note: the default root was working just fine with the default index.hml files

  • @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)

  • @fin31337
    @fin31337 3 роки тому

    dude, great tutorial, big thanks
    just curious, does your tab button broken?🙃

  • @vysakhrn4811
    @vysakhrn4811 2 роки тому

    thanks man,thank u very much

  • @punittewani9255
    @punittewani9255 2 роки тому +1

    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

  • @balasubramaniam7904
    @balasubramaniam7904 Рік тому

    cannot see my output

  • @alrazy12
    @alrazy12 2 роки тому +1

    Hi can you help me im trying to implement same example but getting an error exit with error

  • @Prashanthsheri-l4x
    @Prashanthsheri-l4x Рік тому +1

    why can't you combine CICD together??

  • @arnavbansal4259
    @arnavbansal4259 3 роки тому +2

    _work directory not shown after initiating the GitHub action runner on EC2

    • @maheshkariya
      @maheshkariya  3 роки тому

      It will generate automatically once you commit something

  • @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?

  • @princearthur4868
    @princearthur4868 2 роки тому

    Nice tutorial

  • @atulbhandari4268
    @atulbhandari4268 2 роки тому

    Nice

  • @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)

  • @dipanshugupta5578
    @dipanshugupta5578 6 місяців тому

    How, and when did you added node.js.yml file there is no explanation of that one.

  • @sksafikuddinkhan5935
    @sksafikuddinkhan5935 Рік тому

    Hi bro, can you let me know, how to achieve CD with the help of actions

  • @fin31337
    @fin31337 3 роки тому +1

    Why is sudo required to run the nodejs app?

    • @maheshkariya
      @maheshkariya  3 роки тому

      Don't worry No need but pm2 I thing will run with sudo.

  • @TECHKMR-SOLUTIONS
    @TECHKMR-SOLUTIONS 2 роки тому

    great

  • @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 ?

  • @hemantkumar-ug7jx
    @hemantkumar-ug7jx Рік тому

    thanks a lot but react app nahi chal raha

  • @PixelPioneer-t3q
    @PixelPioneer-t3q 2 роки тому

    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.

  • @rhmtin
    @rhmtin 2 роки тому

    Hi, if i using droplet in digitalocean, it’s same?

    • @maheshkariya
      @maheshkariya  2 роки тому +1

      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😁

  • @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?

  • @rishabhranjan5047
    @rishabhranjan5047 Рік тому

    do anyone knows how to set up .env for this please give me a solution

  • @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?

  • @arnavbansal4259
    @arnavbansal4259 2 роки тому +1

    How to set environment variables for backend?

    • @maheshkariya
      @maheshkariya  2 роки тому +1

      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

  • @antonshliakhtin5490
    @antonshliakhtin5490 10 місяців тому

    помогло!

  • @achyutghimire2266
    @achyutghimire2266 2 роки тому +8

    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

  • @432aniketkadam4
    @432aniketkadam4 Місяць тому

    Remove background music

  • @manshikumar8606
    @manshikumar8606 2 роки тому +1

    Hi, I need help regarding my project for automating deployment. How can I contact you?