Automatic Deployment With Github Actions

43 Comments



In this video we will setup automatic deployments using Github Actions.

Anson’s YouTube Channel:
https://www.youtube.com/user/DatAdam93

Github Actions Page:
https://github.com/features/actions

Timestamps:
0:00 – Introduction & Demo
3:07 – Setting up Github Actions
4:07 – Setting up Workflow File
8:07 – Setting up Github Action Runner
14:37 – Setting up NGINX
21:09 – Pointing domain to our Server
22:17 – React Routing with NGINX
22:52 – Setting up Expressjs API
30:14 – Proxy Passing with NGINX
39:04 – Setting up Server Block
40:53 – Securing our Website

source

43 Comments
    • blank
      zada sellers
      May 10, 2022 00:27 am Reply

      Do you have any video on how to autodeploy it on google cloud?

    • blank
      ClarkF
      May 10, 2022 00:27 am Reply

      Nice tutorial – really; but it should be renamed to Automatic Deployment with NGINX 🙂

    • blank
      yanis benslimane
      May 10, 2022 00:27 am Reply

      This is the best video EVERR !!!! THANKKKSS

    • blank
      Daniel Lindegren
      May 10, 2022 00:27 am Reply

      Great tutorial. It should be `location /api/ { rewrite … }` with the trailing slash. If you leave it off, '/apifhjbcfdh' gets rewritten.

    • blank
      Manju Shree
      May 10, 2022 00:27 am Reply

      Is it possible to do automatic deployment for Oracle Database using GITHUB actions

    • blank
      r3d0c
      May 10, 2022 00:27 am Reply

      try using darkmode..

    • blank
      Huyen Nguyen
      May 10, 2022 00:27 am Reply

      Thanks for the helpful video!

    • blank
      Pepe Calixto
      May 10, 2022 00:27 am Reply

      I think I'm not the only one feeling this way but… If our startups "shine" in the near future it will be because of people like Brad and Anson! Great Tutorial!

    • blank
      Alexis Otaño
      May 10, 2022 00:27 am Reply

      Dude! This shouldn't be called github actions, This is "how to setup your whole life" ! Amazing video!

    • blank
      People And Lifestyle
      May 10, 2022 00:27 am Reply

      Nice and really helpful for JavaScript. How can one do similar automation with django?

    • blank
      Pedro Alvarez
      May 10, 2022 00:27 am Reply

      This video is so helpful thanks!

    • blank
      sagar lama
      May 10, 2022 00:27 am Reply

      While running tests on the actual server, wouldn't it make the server slower?
      Is there a way to build the files on the action and just copy the built files to the server?

    • blank
      Rinto Exandi Sinaga
      May 10, 2022 00:27 am Reply

      Thanks for the good work, it's very detailed and helpful. Keep up.

    • blank
      Tim MR
      May 10, 2022 00:27 am Reply

      Thank you for this video, helped me setup actions for the first time. Very good.

    • blank
      Jainmiah Shaik
      May 10, 2022 00:27 am Reply

      I'm getting this error. What it is. Error: ./setup.sh: line 23: [: /home/jainmiah/actions-runner/cd: binary operator expected

    • blank
      basedonprinciple
      May 10, 2022 00:27 am Reply

      What does it mean to run self-hosted vs. ubuntu? Is there a basic distinction for how the runner and the app's scripts interface?

    • blank
      Mr. Norris
      May 10, 2022 00:27 am Reply

      awesome

    • blank
      Sohanur Rahman
      May 10, 2022 00:27 am Reply

      I have implemented ci/cd successfully following this tutorial….but i'm facing a problem regarding env variable….my project depends on .env file and as i can't keep the env file in my repo obviously….so how can i generate .env file from github action so everytime i push i don't have to create .env file manually?

    • blank
      Phú Võ
      May 10, 2022 00:27 am Reply

      Great video! Thank you

    • blank
      domemvs
      May 10, 2022 00:27 am Reply

      Nice demonstration. I don't think it's a good practice to make your production server a gh actions runner.

    • blank
      Harikrushna Patel
      May 10, 2022 00:27 am Reply

      Done ✅ I implemented successfully. Thank you 😊

    • blank
      Below asmelash Gebremaraim Genrezabher
      May 10, 2022 00:27 am Reply

      Ewe Anne Asmelash Gebremariam Tigraway Eye sellam nialemna yiminey

    • blank
      Starwave
      May 10, 2022 00:27 am Reply

      Never delete this video… Bookmarked for life!

    • blank
      Lekky Jayz
      May 10, 2022 00:27 am Reply

      @09:00 How did you set up "the other" terminal? No prior mention of it, just jumped into it. Not too helpful for beginners.

    • blank
      Harry try
      May 10, 2022 00:27 am Reply

      BRINGING A GUN for a FIST FIGHT – SICK OF ALL THS GITHUB IDIOTS

    • blank
      Иван Иванченко
      May 10, 2022 00:27 am Reply

      how to protect some files from being overwritten?

    • blank
      Yasin Bikmazer
      May 10, 2022 00:27 am Reply

      Nice Shot ! I've been looking for this for few days. Thank You !

    • blank
      Omran Khoja
      May 10, 2022 00:27 am Reply

      I keep getting a `Main process exited, code=exited, status=203/EXEC` error when I run sudo ./svh.sh start. Runner is on CentOS server on DigitalOcean. Any idea what I can do?

    • blank
      Saya Look
      May 10, 2022 00:27 am Reply

      great video !

    • blank
      Cloud Training For Ethusiast AWS
      May 10, 2022 00:27 am Reply

      Awesomeness Fabulous… Thanks for this video

    • blank
      Hagis
      May 10, 2022 00:27 am Reply

      Does the solution break if the build step will not success? For te react app, when GA detect push, the runner will purge the local files and try to build the app. If the build fails, the files will be broken and nginx will serve broken site. Am I wrong? Or the react cares about broken builds and do not touch the output directory until it is sure that the build will work?

    • blank
      Chris Hammock
      May 10, 2022 00:27 am Reply

      this is great.

    • blank
      Michael Ogbuma
      May 10, 2022 00:27 am Reply

      This guy is just amazing ❤️❤️❤️

    • blank
      Nikos Spiropoulos
      May 10, 2022 00:27 am Reply

      why shouldnt we install globally pm2 inside the server with the sudo command?

    • blank
      isaiaseg
      May 10, 2022 00:27 am Reply

      Thank you very much! I had already my server in the root of my instance, and the /actions-runner folder is created in there as well, then when you make your first "deploy" with the actions, it creates again the repo within the /actions-runner folder. So i had to kill all processes from the server i had before, remove it and then i was able to see the actual server attached to the action deploys runining with the changes made on the master branch. Just in any case you guys have the same issue
      ✌️

    • blank
      Allauddin Yousafxai
      May 10, 2022 00:27 am Reply

      Thank you. You made my Day ♥️ ♥️ ♥️ ♥️

    • blank
      Gurpreet Singh
      May 10, 2022 00:27 am Reply

      hi i have setup the same application on my centos server its working fine till my terminal is alive. but once i close the terminal it stop .. and i have to run everytime npm stat in my project how can i run it with out terminal

    • blank
      Mansoor’s Tech
      May 10, 2022 00:27 am Reply

      i was trying to do the same thing using web-hooks, for a .net project. but i see the GitHub actions are more convenient way to do this kind CICD. This tutorial is really cool. Thanks to Traversy Media and specially Anson and Brad. Superb job.

    • blank
      chuks olloh
      May 10, 2022 00:27 am Reply

      Hi Brad. Thanks for the lessons. My question is, I host on Digital ocean. Do I regard it as a self-hosted?

    • blank
      Utkarsh Kukreti
      May 10, 2022 00:27 am Reply

      Thanks for the tutorial.

      Very tough to follow along. So many diversions without background explanations. Not suitable for someone who wants to learn this thing from scratch. Might be helpful for someone with prior knowledge

    • blank
      Reggie Escobar
      May 10, 2022 00:27 am Reply

      Nice.

    • blank
      Abhibhaw Asthana
      May 10, 2022 00:27 am Reply

      Hey, How do we handle env files through this then? I am trying to create env with github secrets but it's creating the variables with empty data. Any idea?

    • blank
      vamsi krishna
      May 10, 2022 00:27 am Reply

      Help me what is the path setting in nginx server for laravela application ?

Leave us a comment