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

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 98

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

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

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

    You are the best. God bless you!

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

    Nice end-to-end tutorial. Thank you

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

    Fantastic tutorial, Thanks Mahesh.

  • @adesojialu1051
    @adesojialu1051 11 місяців тому +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

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

    bro this is amazing, to the point, no bullshit

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

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

    thnks for this awesome tutorial @mahesh

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

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

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

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

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

    This video is amazing, Thankyou!

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

    Thank you, brother, very educational!

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

    This was good Example thank you

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

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

    It helped me a lot, thank you very much 👍

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

      Thanks and don’t forget to subscribe

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

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

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

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

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

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

  • @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 11 місяців тому +1

      increase your instance size to t3.medium

  • @kasir-barati
    @kasir-barati 19 днів тому

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

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

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

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

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

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

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

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

    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 ?

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

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

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

  • @kasir-barati
    @kasir-barati 19 днів тому

    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

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

    thanks man,thank u very much

  • @adesojialu1051
    @adesojialu1051 11 місяців тому

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

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

    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.

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

    Nice

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

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

  • @adesojialu1051
    @adesojialu1051 11 місяців тому

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

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

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

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

    why can't you combine CICD together??

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

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

  • @TECHKMR-SOLUTIONS
    @TECHKMR-SOLUTIONS Рік тому

    great

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

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

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

    Cannot perform an interactive login from a non TTY device

  • @dipanshugupta5578
    @dipanshugupta5578 4 місяці тому

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

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

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

    i dont get a _work directory

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

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

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

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

    thanks a lot but react app nahi chal raha

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

    cannot see my output

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

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

    помогло!

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

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