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
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.
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 ?
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!
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
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?
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?
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
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
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 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?
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