Тёмный

Automatic Deployment With Github Actions 

Traversy Media
Подписаться 2,3 млн
Просмотров 178 тыс.
50% 1

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

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 189   
@programmer4047
@programmer4047 3 года назад
I came here to learn GitHub Actions but ended up learning nginx 😅
@pepecalixto2790
@pepecalixto2790 2 года назад
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 Год назад
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 года назад
I wanted to learn this today and Traversy media released a course. So awesome
@aguynamedandre350
@aguynamedandre350 4 года назад
This is EXACTLY what I needed!
@azizkaukawala
@azizkaukawala 4 года назад
Thank you Anson & Brad! Not only just GH Actions, but you cleared many of my queries regarding node apps. Thank you! 😻
@sanghvian
@sanghvian 4 года назад
Oh. My. God. Wow !!!!! Been wanting to literally learn this since the past week !! Thanks a lot Brad and Anson !!
@moonyyy9093
@moonyyy9093 4 года назад
Thanks Brand! I emailed you last week for CICD tute and I do see this happen today!
@PlotTwists
@PlotTwists 4 года назад
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
@ebrahem-dev
@ebrahem-dev 4 месяца назад
Just what i need all in one simple tutorial♥️ really man you are great
@YasinBikmazer
@YasinBikmazer 3 года назад
Nice Shot ! I've been looking for this for few days. Thank You !
@johnpatrickmadrigal477
@johnpatrickmadrigal477 2 года назад
This is what I needed right now. Thank you Trav and Anson!
@stavrosrempelos9676
@stavrosrempelos9676 4 года назад
I have learnt so much from thiw channel! Th;ank you!
@engineerinie
@engineerinie 4 года назад
I really liked this type of videos. Travesy media getting diverse day by day
@yzzygomez
@yzzygomez 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 ✌️
@JonLeeSmith
@JonLeeSmith 4 года назад
Thanks Brad, this is what I voted for :) Great 'job' Anson!
@dxshindeo
@dxshindeo 3 года назад
Never delete this video... Bookmarked for life!
@alexisotsa
@alexisotsa 2 года назад
Dude! This shouldn't be called github actions, This is "how to setup your whole life" ! Amazing video!
@ayaneshsarkar7804
@ayaneshsarkar7804 4 года назад
Man, I needed this video. A request, please make more videos on different payment APIs.
@Aaronmoreno
@Aaronmoreno 4 года назад
Been doing some github actions and this is perfect timing!
@spaghetticode3107
@spaghetticode3107 4 года назад
Yes! Been waiting for something like this for a long time
@saeedhadikhanloo5499
@saeedhadikhanloo5499 4 года назад
That was awesome. Thanks, Anson and Brad!
@nickchauhan
@nickchauhan 4 года назад
👏👏👏 Super awesome tutorial I learned a lot from this. Github Actions + Nginx + SSL + Full stack deployment etc. Bravo 👏👏👏
@timmr1877
@timmr1877 2 года назад
Thank you for this video, helped me setup actions for the first time. Very good.
@collegelifesolution7187
@collegelifesolution7187 4 года назад
Thanks for choosing this topic. 🤩🤩🤩
@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
@SunilSkanda
@SunilSkanda 4 года назад
Thanks, Brad. I've added this to my watchlist. This is useful stuff.
@teachyourselfcs
@teachyourselfcs Год назад
Wow, loved this video at all levels subbed to your channel Anson
@sonaisrayelyan2947
@sonaisrayelyan2947 3 года назад
Really good video, I learn lot about ssl certificate, about automatic deployments, thanks a lot
@tofa8608
@tofa8608 3 года назад
Wow, just wow!
@marufahmed7314
@marufahmed7314 2 года назад
Thank you so much. I learned something new
@rajpiskala
@rajpiskala Год назад
This is incredibly well made. Thank you for this amazing tutorial!
@cloudtrainingforethusiast
@cloudtrainingforethusiast 3 года назад
Awesomeness Fabulous... Thanks for this video
@jeevanjyotidash7104
@jeevanjyotidash7104 3 года назад
After running job npm install gives me error (No such file or directory) Please help.
@yanisbenslimane3106
@yanisbenslimane3106 2 года назад
This is the best video EVERR !!!! THANKKKSS
@ultradevx
@ultradevx 4 года назад
Thank you Brad. This was a great video to learn from
@danieladedeji5285
@danieladedeji5285 3 года назад
AGENT_ALLOW_RUNASROOT is now RUNNER_ALLOW_RUNASROOT
@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.
@someoneelse8263
@someoneelse8263 Год назад
Perfectly explained and always on point ! thanks you !
@ssahillppatell
@ssahillppatell 3 года назад
One of the best tutorial out there
@cedricizabayo
@cedricizabayo 3 года назад
Thank you, you saved my time.
@md.mohiuddin
@md.mohiuddin Год назад
Great tutorial. Thanks a lot.
@silvesterwali6565
@silvesterwali6565 3 года назад
this is really recommended
@Gravi-channel
@Gravi-channel 4 года назад
Awsome
@RintoExandiSinaga
@RintoExandiSinaga 2 года назад
Thanks for the good work, it's very detailed and helpful. Keep up.
@muhamadekhhaji4912
@muhamadekhhaji4912 Год назад
Thank you for this.
@arbazadam3407
@arbazadam3407 4 года назад
Thank you so much Brad ♥️👏🏼💯
@tokaykorkut9642
@tokaykorkut9642 Год назад
As always, Great job on this channel!
@iHariPatel
@iHariPatel 3 года назад
Done ✅ I implemented successfully. Thank you 😊
@ashimi0x
@ashimi0x 4 года назад
#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths
@HuyenNguyen-bb3cg
@HuyenNguyen-bb3cg 2 года назад
Thanks for the helpful video!
@jshossen
@jshossen Год назад
Super helpful
@jnmldo
@jnmldo 3 года назад
Thank you so much, This is gold!
@codezero6023
@codezero6023 4 года назад
That’s cool. I have always used Travis CI with Github
@phuvo8183
@phuvo8183 3 года назад
Great video! Thank you
@sulaymanmuhammedjawneh5937
@sulaymanmuhammedjawneh5937 4 года назад
what everyone been waiting for yaaayyy!!!
@michaelogbuma7344
@michaelogbuma7344 3 года назад
This guy is just amazing ❤️❤️❤️
@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.
@yatiacdev
@yatiacdev 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 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 года назад
Was about to ask the same Q
@dovakiin0
@dovakiin0 3 года назад
Thank you soo much. This was so easy to follow
@carterv.31
@carterv.31 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?
@RajuSingh001732
@RajuSingh001732 6 месяцев назад
Excellent
@NishargShah
@NishargShah 4 года назад
Best video with awesome explanation, Thanks 😀
@srikanthambaldhage2268
@srikanthambaldhage2268 Год назад
Thankyou so much friend
@mayurchavhan8590
@mayurchavhan8590 4 года назад
WOW waited for this...
@kadeus
@kadeus 4 года назад
prefect
@silvesterwali6565
@silvesterwali6565 3 года назад
thank for great toturial
@Memeche12
@Memeche12 2 года назад
This video is so helpful thanks!
@allauddinyousafxai
@allauddinyousafxai 3 года назад
Thank you. You made my Day ♥️ ♥️ ♥️ ♥️
@hamidja1537
@hamidja1537 2 года назад
Thanks for sharing
@lsagar
@lsagar 2 года назад
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?
@omar99ize
@omar99ize 4 года назад
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
@alexandros-markovits
@alexandros-markovits 4 года назад
Great video! Really interesting
@atulsinghrajput9932
@atulsinghrajput9932 4 года назад
nice tutorial learn something new . thanks
@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!
@franciskisiara
@franciskisiara 2 года назад
You just got a new subscriber man 👨
@nishantkumar6960
@nishantkumar6960 4 года назад
omg❤️. I was waiting for this since months. Thank you so much 💝. I 'm your first viewer.
@ayushkaushik2459
@ayushkaushik2459 4 года назад
Hi can u help me in GitHub problem ?
@nishantkumar6960
@nishantkumar6960 4 года назад
@@ayushkaushik2459 If I can, certainly I will. What's the issue?
@johncerpa3782
@johncerpa3782 3 года назад
Great video, thank you
@ashimi0x
@ashimi0x 4 года назад
#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths
@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 года назад
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 2 месяца назад
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
@groovebird812
@groovebird812 4 года назад
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?
@chrishammock6054
@chrishammock6054 3 года назад
this is great.
@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?
@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 года назад
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
@asdiasx
@asdiasx 4 года назад
Fantastic!!!
@iUmerFarooq
@iUmerFarooq 4 года назад
Once again Anson here ❤
@sayalook6643
@sayalook6643 3 года назад
great video !
@zakariaabdi6197
@zakariaabdi6197 4 года назад
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
@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.
@mr.norris3840
@mr.norris3840 3 года назад
awesome
@reggieescobar2772
@reggieescobar2772 3 года назад
Nice.
@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?
@josephwong2832
@josephwong2832 4 года назад
nice tutorial
@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?
@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
@MrMiguelapb35
@MrMiguelapb35 4 года назад
Nice, good job man
@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?
@nikosspiropoulos8417
@nikosspiropoulos8417 3 года назад
why shouldnt we install globally pm2 inside the server with the sudo command?