Hey, I followed all the steps all the way to 17:50 but for some reason I get this error with nginx -t : nginx: [crit] pread() "/etc/nginx/sites-enabled/neas" failed (21: Is a directory) nginx: configuration file /etc/nginx/nginx.conf test failed Do you know of any fixes?
Compared to laravel it's really hard :X In Laravel you just push to git and it uploads all data to server.. There I see need every time build project after every web update :X
Words can't thank you enough bro..I'll definitely give a vote of thanks/acknowledgement to you on my applications once I deploy and get them running for business.. you're God sent man.. Then I kind of have issues in reading data on select tags when performing the update part of my CRUDs... Also dependent tags have kept me at a place for 2 days now, I kind of got to figure it out today but it shows the retrieved data on my network inspection tool, but while reading it out on the page, it doesn't show the data's I see on my network🤦, kind of left where ever I had tags in my updates pages and went on with other things...if you could illustrate these in you next tutorials please, I would be grateful.. the dependent tags are like country->states relationships
your video is amazing dude, just one thing: don't forget to allow ssh in firewall, because when your IP is changed you won't be able to access to your vps from putty, if it ever happened to one of you, just access to your vps via your hosting vnc and write: ufw allow ssh then reload your server and reconnect from putty.
Merhaba, çok açıklayıcı olmuş ama aklımda bir soru işareti kaldı. Api içerisindeki back-end main index.js dosyasında https ile alakalı bir şey yapmadın sadece nginx içerisinde bir paket yükledin bu nasıl olabiliyor? Bu şekilde https olabiliyor mu bir site back-end'de hiçbir belirtme yapmadan
Fantastic video. Was able to bring up a series of react apps with SSL after struggling to deploy them behind docker nginx proxy container architectures. The video and supporting documents are perfect, thank you very much for the information, a real life saver!
Your tutorial is one of my best favourite channel, words cannot say how happy i am when found your channel. Please tell us how difference is deploying to hostinger shared hosting compared to single hosting!
I randomly ended up on your channel and i continuously watching your videos and not getting bored like other Online tutorials. You are simply great!!!.
amazing tutorials. even i've seen you portfolio you've made amazing projects. could you please make videos tutorials on that projects too. like slack clone, UA-cam, google, twitter clones and etc. please make tutorials on these, i'm waiting for it. keep making amazing production level projects.
Thank you so much Lama this is awesome. As a side note and warning for the rest of us, make sure to allow ssh before running "nginx 'Full Access'", nginx full access will only allow port 80 and 443. otherwise you will be locked out of your vps . just like I got locked out of my digitalocean droplet.
@@biniteshome1403 Can you share your whole code because I'm having login problem. And I don't have much knowledge of react latest version. Will you please??
Hi would you be able to give me some advice? I have a React.js app which I deployed on hostinger. My React.js uses axiom to connect to Springboot API which then uses a GET call to retrieve information from Database. So far, I have uploaded the React.js app to my hostinger account and connected it with my domain. The problem is that I am not really sure how I would connect the other two components. Do I have to use VPS to upload my Springboot API and then connect it to mySQL DB on hostinger? Will appreciate any pointers. Thank you
Amazing tutorial LamaDev , you give us inspiration to learn everyday something new and make something new everyday. Can you make tutorial on deploying this project free . It will help most of the people like me , who are learning not able to afford buying Hostinger.
If anybody had a connection problem to their host via SSH after that, for me it was because of ufw locking me out. I had to reinitialize firewall in hostinger settings, and then after i could connect again, re-enable ufw and adding "ufw allow ssh". All good now !
I'm trying to upload files using multer in my node backend and in react frontend I'm setting request body with some form data along with the file. Only that route throwing me unexpected token < error. Do I need to configure something to work multer with nginx. Please let me know
Thank you for your tutorial . I want flow you but i have one quation. how can i sent my big data to my hosting VPN. i saw in video. you sent all files to githup repo. but i have big videos size. can you help met the that ? becouse i don't understand how i can update my site with new items. please i want more help to make it. thank you ...
hi nice tutorial...i followed your steps and deploy this project...but api server not connecting to client and admin page is not display any think which is shown black...where i did mistake....seperately api-server is working but ...and given details in .env file but api not hitting to client displayed only register ...other pages is not working..can you suggest me ...
very appreciated, nice tutorual but you should pont that when activating the ufw you should add the ssh rules, so when you try to connect again later it will let you connect
Thanks Lama for great contents I m just trying to deploy one app on nginx everythings works fine, but i can't reach my assets folder located in my api. /api/assets/images. Please can you give some trics?
Perfect video, thank you so much!!! Small clarification for the uninitiated, I struggled to solve this problem so if you leave the server and you have as message connection time out each time without possibility to reconnect to your server, you must restart the firewall then reconnect. Once reconnected, you need to authorize ssh with this command: sudo ufw allow ssh You'll have no more connection problems
Hi, thank you for the awesome video! What I would like to know is if there is a reason to proxy pass to the public ip and use cors instead of proxy passing to localhost, which theoretically could lead to better performance?
Bro try hosting React blog application.... I'm having issues while deploying it on heroku.....after removing that proxy: local host:3000/api/...try hosting this on heroku....we beginners really need this video....
Just have your npm static build folder contents in ~/../var/www/html and configure your nginx config file to serve the frontend with that path and its essentially the same as any other static deployment.
@@prathibhar3209 Yes I tried hosting through heroku....my folder structure was like server folder and inside it client folder...I created build folder using npm run build and served this folder as an frontend... removed proxy and add "heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client"...and through heroku cli I pushed files to herok master:main ... application was running but I was not able to fetch any data..
Make deployment on ubuntu nginx, aws .also image upload on aws s3 using multers3 and aws sdk
Hey, I followed all the steps all the way to 17:50 but for some reason I get this error with nginx -t :
nginx: [crit] pread() "/etc/nginx/sites-enabled/neas" failed (21: Is a directory)
nginx: configuration file /etc/nginx/nginx.conf test failed
Do you know of any fixes?
hey! have you solved this problem? i have a same one
When we enable ufw there is disruption on ssh connection as warned by the message, we can never again ssh into the server afterwards,
This is the most accurate tutorial to real deploy a frontend + backend, you're awesome, thanks!
Compared to laravel it's really hard :X
In Laravel you just push to git and it uploads all data to server.. There I see need every time build project after every web update :X
@@pastuh build can be automated on Code side or server side you dont have to run Npm build
Hey, please. How do I automate the build process@@sweatypotato248
nice! just don't forget to run 'ufw allow ssh' so you can't risk closing the ssh connection when you try to login next time
i have a big problem
can anyone help me
when i deploy react, nodejs with nginx , after two days , nginx consume all the CPU until 99.9
This is the most accurate tutorial to real deploy a frontend + backend, you're awesome, thanks!
Truly helpful and amazing video. I did my deployment for the first time and because of you, it felt like a piece of cake. Thanks alot
at 17:42 if your page is not showing just disable firewall, run this command ufw disable
Words can't thank you enough bro..I'll definitely give a vote of thanks/acknowledgement to you on my applications once I deploy and get them running for business.. you're God sent man..
Then I kind of have issues in reading data on select tags when performing the update part of my CRUDs... Also dependent tags have kept me at a place for 2 days now, I kind of got to figure it out today but it shows the retrieved data on my network inspection tool, but while reading it out on the page, it doesn't show the data's I see on my network🤦, kind of left where ever I had tags in my updates pages and went on with other things...if you could illustrate these in you next tutorials please, I would be grateful.. the dependent tags are like country->states relationships
Thanks bro, I've litreally wasted my whole day searching for this exact content.
Şafak adamsın be böyle bir video arıyordum ve bir Türkten bunu görmek... Çok sağol!
your video is amazing dude, just one thing: don't forget to allow ssh in firewall, because when your IP is changed you won't be able to access to your vps from putty, if it ever happened to one of you, just access to your vps via your hosting vnc and write: ufw allow ssh then reload your server and reconnect from putty.
Yeah got locked out of my VPS first time round, thanks
great work... amazing video...
u r great bro , thank u
Merhaba, çok açıklayıcı olmuş ama aklımda bir soru işareti kaldı. Api içerisindeki back-end main index.js dosyasında https ile alakalı bir şey yapmadın sadece nginx içerisinde bir paket yükledin bu nasıl olabiliyor? Bu şekilde https olabiliyor mu bir site back-end'de hiçbir belirtme yapmadan
Great tutorial, don't forget guys to allow ssh by "ufw allow ssh", so u can connect again
This is great!!
Fantastic video. Was able to bring up a series of react apps with SSL after struggling to deploy them behind docker nginx proxy container architectures. The video and supporting documents are perfect, thank you very much for the information, a real life saver!
does this video explain docker + nginex + node or only nginex + node?
ty
@@27sosite73 didn't mention any docker just nginx with node and react
First option is okey for an app with1000 active users?
Hope next project is on an e-commerce website like amazon 😁
then we can get hired at amazon xD
@@wotizit inshallah
Your tutorial is one of my best favourite channel, words cannot say how happy i am when found your channel. Please tell us how difference is deploying to hostinger shared hosting compared to single hosting!
After deploying my website when I want to makechanges to y front end, I doesn't save even after using npm build
Bro, how can we can setup email server with these applications... Please make a video 🙏🙏🙏🙏
I randomly ended up on your channel and i continuously watching your videos and not getting bored like other Online tutorials. You are simply great!!!.
Need to update the content. Static files were not loaded and the config needed to change a little bit. Thank you for the awesome tutorial
this tutorial has saved me, two times now, appreciate you!
hello guys, i have problem in post request it showing me a message 405 not allowed in any can solve it
amazing tutorials. even i've seen you portfolio you've made amazing projects. could you please make videos tutorials on that projects too. like slack clone, UA-cam, google, twitter clones and etc. please make tutorials on these, i'm waiting for it. keep making amazing production level projects.
Hello, is it normal to be unable to ssh back in to the server once the firewall is up? I end up having to reset the firewall once i get logged out.
where can i copy my mongo url? i dont have .env file fromwhere i can copy
how to link with the domain insraed of the vps IP
make a video on how to deploy the same netflix project with admin for free. BTW amazing work you are doing in this community
THANK YOU SO MUCH.
what if the frontend is made in nextjs how would we serve the build to nodejs then ?
I got the same question! I created a nextjs project but not sure how to set up the vps !
You can just use AWS Lambda and not worry about all this configuration! much easier and cheaper
Harika ötesi bir video. Çok teşekkür ederim hocam. Sevgiler, saygılar.
I really love this deployment tutorial of the Netflix app!
Well I don’t have money so please can you help me with free version ?
thank you so much , the problem is when i'm trying to get to the page with the IP but keep telling me 404 age not found
I have the same problem. Did you manage how to fix that?
putty UI is totally change now, so I can't be able to connect.
Truly helpful and amazing video
thanks so much!!
Thank you so much Lama this is awesome. As a side note and warning for the rest of us, make sure to allow ssh before running "nginx 'Full Access'", nginx full access will only allow port 80 and 443. otherwise you will be locked out of your vps . just like I got locked out of my digitalocean droplet.
Have you deployed?
@@mohitckdubey yes i have
I have been locked out my vps too, I had to disable firewall to access again how to allow SSH access please?
it's "ufw allow ssh" I guess 😅
@@biniteshome1403 Can you share your whole code because I'm having login problem. And I don't have much knowledge of react latest version. Will you please??
Hi would you be able to give me some advice? I have a React.js app which I deployed on hostinger. My React.js uses axiom to connect to Springboot API which then uses a GET call to retrieve information from Database. So far, I have uploaded the React.js app to my hostinger account and connected it with my domain. The problem is that I am not really sure how I would connect the other two components. Do I have to use VPS to upload my Springboot API and then connect it to mySQL DB on hostinger? Will appreciate any pointers. Thank you
really useful with me, thanks a lot
anybody installed nextjs app on nginx on windows
Amazing tutorial LamaDev , you give us inspiration to learn everyday something new and make something new everyday. Can you make tutorial on deploying this project free . It will help most of the people like me , who are learning not able to afford buying Hostinger.
If anybody had a connection problem to their host via SSH after that, for me it was because of ufw locking me out. I had to reinitialize firewall in hostinger settings, and then after i could connect again, re-enable ufw and adding "ufw allow ssh". All good now !
why dont work ssl for subdomain ?
I'm trying to upload files using multer in my node backend and in react frontend I'm setting request body with some form data along with the file. Only that route throwing me unexpected token < error. Do I need to configure something to work multer with nginx. Please let me know
After using certbot for SSL certificate, my website is showing 404
Thank you for your tutorial . I want flow you but i have one quation. how can i sent my big data to my hosting VPN. i saw in video. you sent all files to githup repo. but i have big videos size. can you help met the that ?
becouse i don't understand how i can update my site with new items. please i want more help to make it.
thank you ...
can we delpoy next js the same way ?
can we deploy mern app to hostinger Premium Web Hosting ??
I'm getting cors error how to fix
Me here learning server management so i can use the knowledge on my freelance project. Thanks.
I have subscribed, Liked and commented. Thanks for your effort.
for those who cant similiar result like 17:59
sudo systemctl reload nginx
Love tutorials, I just made a payment with your coupon. Thanks
bro you are a legend please can you make same video with go daddy VPS?
Is mySQL also deployed here?
The best tutorial I've seen about this topic thanks u man!
hi nice tutorial...i followed your steps and deploy this project...but api server not connecting to client and admin page is not display any think which is shown black...where i did mistake....seperately api-server is working but ...and given details in .env file but api not hitting to client displayed only register ...other pages is not working..can you suggest me ...
would have like the portion over DNS config but still a huge banger this video. thk's boss
can you please add a video hosting the same application using docker ?
Great video 😍
Your tutorials are so on point. Good job!
very appreciated, nice tutorual but you should pont that when activating the ufw you should add the ssh rules, so when you try to connect again later it will let you connect
I just locked myself out of my server lol.
@@omardotbio I did too
@@atulya3344 rip lmao
Here i am, reinstalling the OS xD
@@shariqarif1476 lol
Thank you very much bro!
i follow your tutorial after.. sytemctl status i got an error rc-local.service
a helpful UA-cam video ever
Thanks Lama for great contents
I m just trying to deploy one app on nginx everythings works fine, but i can't reach my assets folder located in my api. /api/assets/images. Please can you give some trics?
Your instructions are no good.
Perfect video, thank you so much!!! Small clarification for the uninitiated, I struggled to solve this problem so if you leave the server and you have as message connection time out each time without possibility to reconnect to your server, you must restart the firewall then reconnect. Once reconnected, you need to authorize ssh with this command: sudo ufw allow ssh
You'll have no more connection problems
thanks you so much you learn all the way to do what i want, really thanks 😄
Hi, thank you for the awesome video!
What I would like to know is if there is a reason to proxy pass to the public ip and use cors instead of proxy passing to localhost, which theoretically could lead to better performance?
can users login to this website from their devices?
I have a VPS running Apache and interested in running NGINX on the same server with Apache. How would this be configured?
My VPS is my own VPS not Hostinger, Digital Ocean...
can't find words to thank uuuu , perfeeect
declaring an .env file as you have done lead to merge clash when you git pull into the server.
Amazing video really helpful! Thanks!
best deployment tutorial thanks a lot Eng. Lama
how to deploy node api in https but you did in http : backend
How use CI/CD with github Actions?
Amazing ! Just amazing.
thank you lama dev
you forgot to change the code in some places so I can’t do the deployment
homepage.jsx axios = axios.create({ baseURL: process.env.API_URL }); 21:25
when enable UFW ,ssh acces stopped ? any solution
before you enable ufw write ( sudo ufw allow ssh ) then ufw enable
Teşekkürler !
Thanks so much, this is very helpful.
amazing bro, thank you so much!
you're awesome
Bro try hosting React blog application.... I'm having issues while deploying it on heroku.....after removing that proxy: local host:3000/api/...try hosting this on heroku....we beginners really need this video....
Just have your npm static build folder contents in ~/../var/www/html and configure your nginx config file to serve the frontend with that path and its essentially the same as any other static deployment.
Were you able to resolve your issue about hosting the blog application? If so, please share what procedure you followed?
@@prathibhar3209 Yes I tried hosting through heroku....my folder structure was like server folder and inside it client folder...I created build folder using npm run build and served this folder as an frontend... removed proxy and add
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client"...and through heroku cli I pushed files to herok master:main ... application was running but I was not able to fetch any data..
@Jack Saat bro actually I don't have any vps...also I'm a noobie...I just want to explore free resources first.....
Thank you!
can you write a tutorial on how to do the same from centos 7 CWP enabled?
Wow great bro keep going
I decided to share my knowledge on UA-cam as well 🙏👍
3 years still a lama
why use nginx and not apache already installed on ubuntu ?
I can't stop watching this video😍 loved it. Thank you so much man❤
Lama in your next project before starting coding plz give a brief overview of how you think of starting any project?
You are a God send human being Lama, can't express how grateful I am to you