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!
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.
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
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 ✌️
👏🏽 👏🏽 👏🏽 👏🏽 👏🏽 👏🏽 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
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 ?
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.
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
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 ?
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
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?
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
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!
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?
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?
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
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?
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?
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.
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
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.
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.
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
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
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
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.
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!
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.
I wanted to learn this today and Traversy media released a course. So awesome
I came here to learn GitHub Actions but ended up learning nginx 😅
AGENT_ALLOW_RUNASROOT is now RUNNER_ALLOW_RUNASROOT
This is EXACTLY what I needed!
Dude! This shouldn't be called github actions, This is "how to setup your whole life" ! Amazing video!
Thanks Brand! I emailed you last week for CICD tute and I do see this happen today!
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
I have learnt so much from thiw channel! Th;ank you!
Never delete this video... Bookmarked for life!
Yes! Been waiting for something like this for a long time
Thanks Brad, this is what I voted for :)
Great 'job' Anson!
Just what i need all in one simple tutorial♥️ really man you are great
Thank you Anson & Brad! Not only just GH Actions, but you cleared many of my queries regarding node apps. Thank you! 😻
I really liked this type of videos. Travesy media getting diverse day by day
Oh. My. God. Wow !!!!! Been wanting to literally learn this since the past week !! Thanks a lot Brad and Anson !!
Nice Shot ! I've been looking for this for few days. Thank You !
#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths
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
✌️
Man, I needed this video. A request, please make more videos on different payment APIs.
Thanks for choosing this topic. 🤩🤩🤩
Been doing some github actions and this is perfect timing!
That was awesome. Thanks, Anson and Brad!
👏🏽 👏🏽 👏🏽 👏🏽 👏🏽 👏🏽
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
After running job npm install gives me error (No such file or directory)
Please help.
Really good video, I learn lot about ssl certificate, about automatic deployments, thanks a lot
This is what I needed right now. Thank you Trav and Anson!
Wow, loved this video at all levels subbed to your channel Anson
Awesomeness Fabulous... Thanks for this video
Thank you for this video, helped me setup actions for the first time. Very good.
Thanks, Brad. I've added this to my watchlist. This is useful stuff.
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 ?
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
Was about to ask the same Q
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.
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
fixed it.
Pretty cool. My old job used Jenkins but I never really looked into it. Nice to see other automation tools out there.
This is the best video EVERR !!!! THANKKKSS
One of the best tutorial out there
Thank you Brad. This was a great video to learn from
As always, Great job on this channel!
This is incredibly well made. Thank you for this amazing tutorial!
what everyone been waiting for yaaayyy!!!
👏👏👏
Super awesome tutorial I learned a lot from this.
Github Actions + Nginx + SSL + Full stack deployment etc.
Bravo 👏👏👏
Perfectly explained and always on point ! thanks you !
Thanks for the good work, it's very detailed and helpful. Keep up.
You just got a new subscriber man 👨
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.
Did you ever figure this out?
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 ?
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
Super helpful
Best video with awesome explanation, Thanks 😀
WOW waited for this...
@09:00 How did you set up "the other" terminal? No prior mention of it, just jumped into it. Not too helpful for beginners.
#EndSARS #EndPoliceBrutality #StopPoliceBrutalityinNigeria #StopKillingNigerianYouths
Wow, just wow!
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?
Done ✅ I implemented successfully. Thank you 😊
This guy is just amazing ❤️❤️❤️
Awsome
That’s cool. I have always used Travis CI with Github
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
Thank you so much. I learned something new
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!
Thank you, you saved my time.
Thank you. You made my Day ♥️ ♥️ ♥️ ♥️
Thank you so much Brad ♥️👏🏼💯
Great tutorial. Thanks a lot.
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?
Great video! Really interesting
Great tutorial. It should be `location /api/ { rewrite ... }` with the trailing slash. If you leave it off, '/apifhjbcfdh' gets rewritten.
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?
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
Once again Anson here ❤
Thank you soo much. This was so easy to follow
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?
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?
This video is so helpful thanks!
Thanks for the helpful video!
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.
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
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.
Buy his MERN e-commerce course on Udemy... It was released last week.
Thank you so much, This is gold!
Great video!
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!
Great video! Thank you
Brad does your channel have the option for spanish subtitles?
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?
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.
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
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
Excellent
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
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?
nice tutorial learn something new . thanks
Help me what is the path setting in nginx server for laravela application ?
Nice, good job man
Nice!
Is it a good idea to override the code to bypass sudo? I mean, I did it by removing the "validate sudo" block.
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.
omg❤️. I was waiting for this since months. Thank you so much 💝. I 'm your first viewer.
Hi can u help me in GitHub problem ?
@@ayushkaushik2459 If I can, certainly I will. What's the issue?
great video !
this is really recommended
How to I point to the build file on windows? His example was for Ubuntu and not working on windows
Thank you for this.