omg i watched a lot of tutorials none of them worked until i found this guy the best video ever im going to download it and watch it every fucking day thanks man i love u so much you have no idea how much you have helped me
Amazing tutorial. I spent the whole afternoon jumping between articles and documentations. Usually I prefer blogs and documentation over videos but none were complete as yours. Thanks 🙏🏼
Wow thank you so much! This tutorial saved me a lot of time and helped me to understand what I have to to to run my Server! The first time I got it runnngin my websockets didn't work because it uses ws instead of wss. Now everything is running perfect :) Thanks a lot!
this is amazing man, thank you very much, I wanted to ask, whats that about the 3 months, do we need to reconfigure something after that time or the software is gonna keep running on the domain endlessly?
Hey man! Can you plz give me a hand? if I have a website what do I put here? (at proxy_pass at 10.44). And the website url has to be some other than the url where the frontend is showing?
Howdy! Try something like this and let me know if it works server { root /var/www/example-domain.com; index index.html index.htm index.nginx-debian.html; server_name example-domain.com www.example-domain.com; location / { try_files $uri /index.html; } }
I'm not super sure, but I think if you use letsencrpt certbot, it will be http2. If you DO NOT setup HTTPS, I think its http1. If that doesnt work I think you set it like this in the code certbot generates: `listen 443 ssl http2;` And if all else fails, cloudflare CDN has http2 by default. You can check with this command in ur terminal tho: curl -I -v yourwebsite.com
Not 100% sure what you mean. You would deploy an iOS app with Apple on the app store, then deploy the NodeJS to a VPS (or something similar) and using API calls, they would talk to eachother. But yeah, this would work for the NodeJS portion.
@@Codebrah So when I was originally making my app, I followed your tutorial on the NodeJS for making the authentication system. That was a couple months ago so I am not more versed in NodeJS and I created the entire app using the same structure, and having all of my data on the MySQL server that you originally set up. If I were to follow this tutorial except use a domain of mine instead of the localhost but leave the port for the mySQL server the same in the code, would it still work. I am confused on whether I need to deploy the NodeJS and MySql portions separately or what. Thank You so much in advance.
@@awesomecuber1222 So generally, I would setup MySQL on the VPS. Then use the VPS's localhost to connect to MySQL. This tutorial doesnt use MySql I think, but the setup process would be pretty easy. You would use the command "apt install mysql-server" to install MySQL on the server. After that run "sudo mysql_secure_installation" for security. Then use the command line to make your DB and tables (which you would want the same as the ones on your mac). Once you have all that setup, I think from there, all you would need to change is the socket path in your .env file: "SQL_SOCKET_PATH=/Applications"/MAMP/tmp/mysql/mysql.sock ... if that doesnt work you can find the socket path in "/etc/mysql/mysql.conf.d/mysqld.cnf". You would also need to change the SQL_USER and SQL_PASSWORD (in .env) if those are different. Maybe I'll try to make a video on how to actually deploy your app in that series. I'll see if I have an extra domain name to make it.
another 20 minutes of my life wasted and still have no idea how to put a next.js app on a server. You should have called this video how to bend over for digital ocean. All you did was set up a server. I did all this six months ago.
@@Codebrah No, it looks like that because you need to enter so many commands. Someone need to have full focus and pause the video, rewind and continue to be good. Do not change anything. Anybody can config vps by looking this video. Looks like we hacking around but isnt that awesome to feel the power of linux. 😀
Having a hard time deploying your app?
I'll do it for you, pain free: codingwithcodebrah.com/deploy-4-me
omg i watched a lot of tutorials none of them worked until i found this guy
the best video ever
im going to download it and watch it every fucking day
thanks man i love u so much
you have no idea how much you have helped me
Amazing tutorial. I spent the whole afternoon jumping between articles and documentations. Usually I prefer blogs and documentation over videos but none were complete as yours.
Thanks 🙏🏼
It's amazing that you can remember all of those commands and parameters 🙌
This tutorial is amazing. I done everything on my VPS for the first time so smooth without any problems.
Holy crap that actually worked! Thanks bro, you're the best!
I need to finish watching this, I stopped at 12:49
Awesome video bro, I was struggling to get my backend up and running but your video saves my day.
Thanks a lot.
Wow thank you so much! This tutorial saved me a lot of time and helped me to understand what I have to to to run my Server! The first time I got it runnngin my websockets didn't work because it uses ws instead of wss. Now everything is running perfect :) Thanks a lot!
One of the best tutorials I've watched on this or any topic. Thank you!
Awesome video, this is my first time using DigitalOcean this video is to the point. Great Work 👍👍
The best video i've seen explaining things like that .. straightforward Thanks!
Fantastic explanation, a literal lifesaver, incredibly useful, thanks so much bro / brah!
really useful step by step guide to deploy on linux. thanks!
you got yourself a new subscriber and a fan. Thanks @CodeBrah ! You're a f*cking legend !
I LOVE YOUUUU. This was great. Thanks a lot. Saved me a bunch of time. lol
Thank you so much ive been struggling for a very long time with this
Glad I could help
Was really helpful never used nginx but was able to do what I needed. thanks
You want to keep package-lock in your codebase though right?
will be the same steps for deploying a remix.js app?
You gotta do the same for all nodes to be run on VPS ? Even the cryoto
This video is just perfect! Thank you so much
The server works on desktops/laptops but not on mobile phones, any idea why?
how would you go about automatically pushing github repo updates to the server?
Hey I am having problem. I got stuck on welcome to Nginx server.
Thanks mate, video is detailed af
Totally awesome bro … 🎉💜
If I have apache as a main webserver, nginx and hestia cp, how should I do it?
do you have any tutorial for this?
thanks so much
Thank you so much for this great video :)
very helpful, thanks!
this is amazing man, thank you very much, I wanted to ask, whats that about the 3 months, do we need to reconfigure something after that time or the software is gonna keep running on the domain endlessly?
Hi thanks for the vedio. Can you teach me in zoom to deploy a plotly dash app using nginx and uWSGI in digital ocean?
man you are the best
Hey man! Can you plz give me a hand? if I have a website what do I put here? (at proxy_pass at 10.44). And the website url has to be some other than the url where the frontend is showing?
Howdy!
Try something like this and let me know if it works
server {
root /var/www/example-domain.com;
index index.html index.htm index.nginx-debian.html;
server_name example-domain.com www.example-domain.com;
location / {
try_files $uri /index.html;
}
}
It is work with mysql local host?
when using scp files.zip:~/ what password we input here ? I input my root password and it says permission denied
same here, did you find the solution?
oh nvm i got it
How do I tattoo a video?
Dude , Thanks so much !!!!!
appriciated man
yey worked, thanks mate
Great tutorial!
PS: Jesus Christ your keyboard is LOUD
Hello is it working on http1 or http2? How to configure it
I'm not super sure, but I think if you use letsencrpt certbot, it will be http2. If you DO NOT setup HTTPS, I think its http1.
If that doesnt work I think you set it like this in the code certbot generates:
`listen 443 ssl http2;`
And if all else fails, cloudflare CDN has http2 by default.
You can check with this command in ur terminal tho:
curl -I -v yourwebsite.com
thank you so much.
hey does this also work for deploying ios apps too?
Not 100% sure what you mean. You would deploy an iOS app with Apple on the app store, then deploy the NodeJS to a VPS (or something similar) and using API calls, they would talk to eachother. But yeah, this would work for the NodeJS portion.
@@Codebrah So when I was originally making my app, I followed your tutorial on the NodeJS for making the authentication system. That was a couple months ago so I am not more versed in NodeJS and I created the entire app using the same structure, and having all of my data on the MySQL server that you originally set up. If I were to follow this tutorial except use a domain of mine instead of the localhost but leave the port for the mySQL server the same in the code, would it still work. I am confused on whether I need to deploy the NodeJS and MySql portions separately or what. Thank You so much in advance.
@@awesomecuber1222 So generally, I would setup MySQL on the VPS. Then use the VPS's localhost to connect to MySQL. This tutorial doesnt use MySql I think, but the setup process would be pretty easy.
You would use the command "apt install mysql-server" to install MySQL on the server. After that run "sudo mysql_secure_installation" for security. Then use the command line to make your DB and tables (which you would want the same as the ones on your mac).
Once you have all that setup, I think from there, all you would need to change is the socket path in your .env file: "SQL_SOCKET_PATH=/Applications"/MAMP/tmp/mysql/mysql.sock ... if that doesnt work you can find the socket path in "/etc/mysql/mysql.conf.d/mysqld.cnf". You would also need to change the SQL_USER and SQL_PASSWORD (in .env) if those are different.
Maybe I'll try to make a video on how to actually deploy your app in that series. I'll see if I have an extra domain name to make it.
Is nginx necessary
Thank you!
very very good!!!
8:25 you put an s at http😅
Always upload your app to your home directory otherwise your app wont work or you need to edit the config file.
I love you so much
Nice video
thanks a lot
i am getting 504 timeout
you are a fucking legend. Thank you so much! Helps a lot. Thanks!
perfect
Why does everyone call these things VPS? The p stands for private. How is putting your stuff on the internet even remotely private?
Render does not require all of this 🤦🏻♂️
True but render can't really handle as complex apps. Not for as cheap atleast.
@@Codebrah oh thanks for clarfiying , can u please tell why u didn't use docker here
another 20 minutes of my life wasted and still have no idea how to put a next.js app on a server. You should have called this video how to bend over for digital ocean. All you did was set up a server. I did all this six months ago.
totally frustrating video
Why do you think so? So I can improve
@@Codebrah No, it looks like that because you need to enter so many commands. Someone need to have full focus and pause the video, rewind and continue to be good. Do not change anything. Anybody can config vps by looking this video. Looks like we hacking around but isnt that awesome to feel the power of linux. 😀
@@Codebrahthe process itself is a bit frustrating but the video is great and helps make it less frustrating.