Automatic Deployment With Github Actions

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 190

  • @pepecalixto2790
    @pepecalixto2790 2 года назад +23

    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!

  • @thatonecoder737
    @thatonecoder737 2 года назад +8

    You are a LIFE SAVER! I was looking everywhere for a way to deploy code from github to my virtual machine without having to do it manually every time. A whole day of searching, almost lost all hope, finally! Thank you so much Anson, for this video.

  • @rohanshenoy8353
    @rohanshenoy8353 4 года назад +26

    I wanted to learn this today and Traversy media released a course. So awesome

  • @programmer4047
    @programmer4047 4 года назад +45

    I came here to learn GitHub Actions but ended up learning nginx 😅

  • @danieladedeji5285
    @danieladedeji5285 3 года назад +3

    AGENT_ALLOW_RUNASROOT is now RUNNER_ALLOW_RUNASROOT

  • @aguynamedandre350
    @aguynamedandre350 4 года назад +14

    This is EXACTLY what I needed!

  • @alexisotsa
    @alexisotsa 2 года назад

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

  • @moonyyy9093
    @moonyyy9093 4 года назад +1

    Thanks Brand! I emailed you last week for CICD tute and I do see this happen today!

  • @PlotTwists
    @PlotTwists 4 года назад +5

    If it's only about pushing code, git-ftp is a better solution I think, you get to choose which commit to deploy and it only uploads changed files
    But for deployments that require building or running script before or after the push this is very helpful

  • @stavrosrempelos9676
    @stavrosrempelos9676 4 года назад +2

    I have learnt so much from thiw channel! Th;ank you!

  • @dxshindeo
    @dxshindeo 3 года назад

    Never delete this video... Bookmarked for life!

  • @spaghetticode3107
    @spaghetticode3107 4 года назад +4

    Yes! Been waiting for something like this for a long time

  • @JonLeeSmith
    @JonLeeSmith 4 года назад +4

    Thanks Brad, this is what I voted for :)
    Great 'job' Anson!

  • @ebrahem-dev
    @ebrahem-dev 6 месяцев назад

    Just what i need all in one simple tutorial♥️ really man you are great

  • @azizkaukawala
    @azizkaukawala 4 года назад +6

    Thank you Anson & Brad! Not only just GH Actions, but you cleared many of my queries regarding node apps. Thank you! 😻

  • @engineerinie
    @engineerinie 4 года назад

    I really liked this type of videos. Travesy media getting diverse day by day

  • @sanghvian
    @sanghvian 4 года назад +1

    Oh. My. God. Wow !!!!! Been wanting to literally learn this since the past week !! Thanks a lot Brad and Anson !!

  • @YasinBikmazer
    @YasinBikmazer 3 года назад

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

  • @ashimi0x
    @ashimi0x 4 года назад +1

    #EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths

  • @yzzygomez
    @yzzygomez 3 года назад +3

    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
    ✌️

  • @ayaneshsarkar7804
    @ayaneshsarkar7804 4 года назад +1

    Man, I needed this video. A request, please make more videos on different payment APIs.

  • @collegelifesolution7187
    @collegelifesolution7187 4 года назад +3

    Thanks for choosing this topic. 🤩🤩🤩

  • @Aaronmoreno
    @Aaronmoreno 4 года назад +1

    Been doing some github actions and this is perfect timing!

  • @saeedhadikhanloo5499
    @saeedhadikhanloo5499 4 года назад +1

    That was awesome. Thanks, Anson and Brad!

  • @breezycodes
    @breezycodes Год назад

    👏🏽 👏🏽 👏🏽 👏🏽 👏🏽 👏🏽
    Well done. I was thinking about teaching this in a future video.. but this tutorial is very good.
    The only thing missing is showing how to automate the renewal of the SSL certificate

  • @jeevanjyotidash7104
    @jeevanjyotidash7104 4 года назад +4

    After running job npm install gives me error (No such file or directory)
    Please help.

  • @sonaisrayelyan2947
    @sonaisrayelyan2947 4 года назад

    Really good video, I learn lot about ssl certificate, about automatic deployments, thanks a lot

  • @johnpatrickmadrigal477
    @johnpatrickmadrigal477 2 года назад

    This is what I needed right now. Thank you Trav and Anson!

  • @teachyourselfcs
    @teachyourselfcs Год назад

    Wow, loved this video at all levels subbed to your channel Anson

  • @cloudtrainingforethusiast
    @cloudtrainingforethusiast 3 года назад

    Awesomeness Fabulous... Thanks for this video

  • @timmr1877
    @timmr1877 3 года назад

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

  • @SunilSkanda
    @SunilSkanda 4 года назад +1

    Thanks, Brad. I've added this to my watchlist. This is useful stuff.

  • @yatiacdev
    @yatiacdev 4 года назад +4

    Can you explain why you need to rewrite the requests to /api if you are basically leaving it how it was before (e.g. /api/hello will rewrite to /api/hello). Can't you just pass it directly to port 3000 ?

    • @dealerpriest
      @dealerpriest 4 года назад +3

      Seems to me thats a mistake. I would remove the "api" part in the rewrite. Then he wouldn't need to match against "/api" in express.js

    • @EphraimMower
      @EphraimMower 3 года назад +1

      Was about to ask the same Q

  • @johanlarsson9805
    @johanlarsson9805 4 года назад

    This is basicaly what I have been doing manually with Webhooks and scripts I created on the server. NginX was also needed then to make the endpoints for the Webhooks.

  • @lifeoftyw
    @lifeoftyw Год назад

    I'm getting error when I go to run the job @ 11:45
    Error: Dependencies lock file is not found in /home/tyler/actions-runner/_work/website-fullstack/website-fullstack. Supported file patterns: package-lock.json,npm-shrinkwrap.json,yarn.lock

  • @Chandasouk
    @Chandasouk 4 года назад

    Pretty cool. My old job used Jenkins but I never really looked into it. Nice to see other automation tools out there.

  • @yanisbenslimane3106
    @yanisbenslimane3106 2 года назад

    This is the best video EVERR !!!! THANKKKSS

  • @ssahillppatell
    @ssahillppatell 4 года назад

    One of the best tutorial out there

  • @ultradevx
    @ultradevx 4 года назад +1

    Thank you Brad. This was a great video to learn from

  • @tokaykorkut9642
    @tokaykorkut9642 2 года назад

    As always, Great job on this channel!

  • @rajpiskala
    @rajpiskala 2 года назад

    This is incredibly well made. Thank you for this amazing tutorial!

  • @sulaymanmuhammedjawneh5937
    @sulaymanmuhammedjawneh5937 4 года назад +1

    what everyone been waiting for yaaayyy!!!

  • @nickchauhan
    @nickchauhan 4 года назад +5

    👏👏👏
    Super awesome tutorial I learned a lot from this.
    Github Actions + Nginx + SSL + Full stack deployment etc.
    Bravo 👏👏👏

  • @someoneelse8263
    @someoneelse8263 Год назад

    Perfectly explained and always on point ! thanks you !

  • @RintoExandiSinaga
    @RintoExandiSinaga 3 года назад

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

  • @franciskisiara
    @franciskisiara 2 года назад

    You just got a new subscriber man 👨

  • @carterv.31
    @carterv.31 4 года назад +4

    Anson's video is gold. Really loved it. I want to set up environment variables in this work flow. Anyone please tell how to do it.

    • @lifeoftyw
      @lifeoftyw Год назад

      Did you ever figure this out?

  • @hijazi479
    @hijazi479 3 года назад

    9:48 when i try to configure it it gives me this error
    "./config.sh: line 80: ./bin/Runner.Listener: cannot execute binary file: Exec format error" ? how to solve this ?

    • @irwansyafani
      @irwansyafani 3 года назад

      I just have the same error then figure it out
      I think it will shows when your OS you r runnin' is not same with your runner setup
      So, instead choosing Ubuntu I choose Mac as my runner setup
      It works for me

  • @jshossen
    @jshossen Год назад

    Super helpful

  • @NishargShah
    @NishargShah 4 года назад

    Best video with awesome explanation, Thanks 😀

  • @mayurchavhan8590
    @mayurchavhan8590 4 года назад +1

    WOW waited for this...

  • @lekkyjayz6294
    @lekkyjayz6294 3 года назад

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

  • @ashimi0x
    @ashimi0x 4 года назад +1

    #EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths

  • @tofa8608
    @tofa8608 3 года назад +1

    Wow, just wow!

  • @lsagar
    @lsagar 3 года назад +1

    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?

  • @iHariPatel
    @iHariPatel 3 года назад

    Done ✅ I implemented successfully. Thank you 😊

  • @michaelogbuma7344
    @michaelogbuma7344 3 года назад

    This guy is just amazing ❤️❤️❤️

  • @Gravi-channel
    @Gravi-channel 4 года назад +7

    Awsome

  • @codezero6023
    @codezero6023 4 года назад

    That’s cool. I have always used Travis CI with Github

  • @omar99ize
    @omar99ize 4 года назад +1

    I noticed you are running your action runner on the web server itself. How would you handle this if this were to be a large application with multiple web servers or on web servers you don’t have total control over like AWS Elastic beanstalk ? Thanks

  • @marufahmed7314
    @marufahmed7314 2 года назад

    Thank you so much. I learned something new

  • @ExarchiasGhost
    @ExarchiasGhost 2 года назад

    It was a very interisting tutorial. To be honest you are going a bit too fast through all the details, but if someone follows carefully through your tutorials will be benefited greatly. I love how well you are addressing the matter of routing. Great video!

  • @cedricizabayo
    @cedricizabayo 4 года назад +1

    Thank you, you saved my time.

  • @allauddinyousafxai
    @allauddinyousafxai 3 года назад

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

  • @arbazadam3407
    @arbazadam3407 4 года назад +1

    Thank you so much Brad ♥️👏🏼💯

  • @md.mohiuddin
    @md.mohiuddin 2 года назад

    Great tutorial. Thanks a lot.

  • @groovebird812
    @groovebird812 4 года назад +1

    What do i have to use if i don't have my own server? Can i also use the actions in order to deploy the code to an remote server, e.g. to my webhosting environment?

  • @alexandros-markovits
    @alexandros-markovits 4 года назад

    Great video! Really interesting

  • @daniellindegren1182
    @daniellindegren1182 2 года назад

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

  • @HelloXori
    @HelloXori 3 года назад +2

    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?

    • @davidplesa
      @davidplesa 5 месяцев назад

      hello, i know this is 3 years later and you are probabbly are not working on that project anymore, but did you find a solution to this? i am facing the same problem and i don't know how to handle .env files

  • @iUmerFarooq
    @iUmerFarooq 4 года назад +1

    Once again Anson here ❤

  • @dovakiin0
    @dovakiin0 3 года назад

    Thank you soo much. This was so easy to follow

  • @1998Hagis
    @1998Hagis 3 года назад

    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?

  • @nathanstanfordsr
    @nathanstanfordsr 2 года назад

    I want a simple way to when Branch X is pushed it will the somehow push to production server. Do I have to put some kind ot code for production server to do a git pull?

  • @Memeche12
    @Memeche12 3 года назад

    This video is so helpful thanks!

  • @HuyenNguyen-bb3cg
    @HuyenNguyen-bb3cg 2 года назад

    Thanks for the helpful video!

  • @amanpreet-dev
    @amanpreet-dev 4 года назад

    Wow, this video has shown almost all the things for deployment. Only 1 question in my mind how github actions will work with different environments like staging, QA, UAT, etc.

    • @reniercuervo8577
      @reniercuervo8577 4 года назад +2

      My guess from looking at the rundown of the action script is that you could have a git branch for each of those and for example deploy to QA then, after they give you the green light you could deploy to production or have then do it, whatever it fits you. My take from the video is that it doesn't have to always be deployed to production, you can deploy to your own intranet.
      This is just my educated guess

  • @ermakamre
    @ermakamre 4 года назад +1

    Nice video! But how do you develop with React app and Express backend running both of them locally and using API from React app? Routes for the API will be different locally and on VPS.

    • @bonarhyme
      @bonarhyme 4 года назад +1

      Buy his MERN e-commerce course on Udemy... It was released last week.

  • @jnmldo
    @jnmldo 4 года назад

    Thank you so much, This is gold!

  • @xjohnfit
    @xjohnfit Месяц назад

    Great video!

  • @mohamedlimam1310
    @mohamedlimam1310 4 года назад

    Great video! Thank you, I learn a lot! I just have one question. If you want to do CI on multiple servers how do you do ? Thank you for your answer!

  • @phuvo8183
    @phuvo8183 3 года назад

    Great video! Thank you

  • @tenaciousv5724
    @tenaciousv5724 4 года назад

    Brad does your channel have the option for spanish subtitles?

  • @basedonprinciple
    @basedonprinciple 3 года назад

    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?

  • @zakariaabdi6197
    @zakariaabdi6197 4 года назад +1

    i took a course on udemy which was made and uplouded Brad but there is issues with the code. and when i try to research it there were other people that had the same issue with same line of code.
    this is the copy of that line of code:
    const seatsIndex = [...selectedSeats].map(function (seats) {
    return [...seats].indexOf(seat);
    });
    and the console say this: Uncaught TypeError: [(...seats)].indexOf is not iterable/.
    could you please fix it or tell us the issues.

    • @rohanshenoy8353
      @rohanshenoy8353 4 года назад

      If ur getting that it's not iterable it means means the type is not array on which you are calling index of. As it uses for loop internally. Please check what value u are getting

  • @L8947
    @L8947 Год назад

    I got these files to push to my server to the correct dir but I use apache virtual host and I got a 403 error when I pointed the virtual host to the new directory

  • @RajuSingh001732
    @RajuSingh001732 8 месяцев назад

    Excellent

  • @9987366541
    @9987366541 3 года назад

    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

  • @wikramawardana9419
    @wikramawardana9419 4 года назад

    hi brad and all, i want to ask.. how if we have any repo on github? should i create action folder multiple times? or 1 enough?

  • @atulsinghrajput9932
    @atulsinghrajput9932 4 года назад

    nice tutorial learn something new . thanks

  • @vamsikrishna2241
    @vamsikrishna2241 3 года назад

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

  • @MrMiguelapb35
    @MrMiguelapb35 4 года назад

    Nice, good job man

  • @ShahidulIslamcse
    @ShahidulIslamcse 4 года назад

    Nice!
    Is it a good idea to override the code to bypass sudo? I mean, I did it by removing the "validate sudo" block.

  • @lecadou
    @lecadou 2 года назад

    Nice video, I just want to mention that pointing out Nginx to the Build folder is a bad workflow design. Your workflow should deploy the build outputs to the appropriate repository.

  • @nishantkumar6960
    @nishantkumar6960 4 года назад +1

    omg❤️. I was waiting for this since months. Thank you so much 💝. I 'm your first viewer.

    • @ayushkaushik2459
      @ayushkaushik2459 4 года назад +1

      Hi can u help me in GitHub problem ?

    • @nishantkumar6960
      @nishantkumar6960 4 года назад +1

      @@ayushkaushik2459 If I can, certainly I will. What's the issue?

  • @sayalook6643
    @sayalook6643 3 года назад

    great video !

  • @silvesterwali6565
    @silvesterwali6565 3 года назад

    this is really recommended

  • @gbadamosilekan8790
    @gbadamosilekan8790 2 года назад

    How to I point to the build file on windows? His example was for Ubuntu and not working on windows

  • @muhamadekhhaji4912
    @muhamadekhhaji4912 Год назад

    Thank you for this.