Тёмный
No video :(

Host and Deploy a Node / Express app on AWS Lightsail (VPS) with a Custom Domain and SSL 

Jose Valerio
Подписаться 140
Просмотров 32 тыс.
50% 1

NOTE: The code on Github uses a different repository name as I wanted to clean it up!
Code: github.com/jos...
AWS Lightsail: aws.amazon.com...
Directory of your project if you used my tutorial:
/home/bitnami/htdocs/Express-Testing
Bitnami Custom Node Proxy (forwarding port 80 and 443 to our app's 3000):
docs.bitnami.c...
Restart Apache Server Command:
sudo /opt/bitnami/ctlscript.sh restart apache
SSL Certification Command: sudo /opt/bitnami/bncert-tool

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

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@hado.uken_
@hado.uken_ 3 года назад
maybe I am just a visual learner, but I have always preferred video guides like this over written ones. Thank you saved me a bunch of time!
@bareprettyhat
@bareprettyhat 2 месяца назад
watched this at least 5 times over the course of a year or 2 thanks a lot man
@deepjasoliya9137
@deepjasoliya9137 2 месяца назад
Thank you so much! This tutorial is still relevant in 2024 and thank you again
@alonben-arieh2619
@alonben-arieh2619 2 года назад
That's pretty unbelievable that I couldn't find any other tutorial, including the official ones, that would tell me how to do all these HTTPS cert stuff and DNS in such a clear way. Thank you!
@terdoomzer
@terdoomzer 2 года назад
Oh man!!! I am only 2/3 into the tutorial and the content has redeemed me from a two week struggle of reading the official docs and feeling as dumb as hell. Thanks for this a million. You saved me!!!
@wasabicarr
@wasabicarr 3 года назад
This is so simple and clear it has truly made my day, thank you!
@joswayski
@joswayski 3 года назад
You're very welcome!
@cyberbyron7701
@cyberbyron7701 2 года назад
The best lightsail walkthrough there is for Node apps. Thank you so much for this!
@Pipatnight_animei
@Pipatnight_animei 7 месяцев назад
thank you very much It took me almost 1 month to find this video. Thank you.
@gregoryfarrell797
@gregoryfarrell797 Год назад
I honestly don't know how long this would have taken me to figure out on my own, much thanks.
@lychasMe
@lychasMe Год назад
One of the best (if not the best) tutorials I have ever seen, been reading docs and watching other people but this is the best by a MILE, thanks so much!
@openvr-app
@openvr-app 7 месяцев назад
I love you man! the way you explain is soo good
@pinn1437
@pinn1437 3 года назад
THANK YOU BRO. I've wasted so much time reading and watching crap that didn't work at all until I found this. You are my hero lol
@spookyvam
@spookyvam 11 месяцев назад
Thank you so much! Your experience saved my time. Really appreciated your effort for making this video!
@spencerformayor4171
@spencerformayor4171 2 года назад
This video has a lot of good basic information but AWS has changed Lightsail since this video was published. The virtual host configuration files are a little different than what is mentioned in the video. In the Apache2 Bitnami folder, there are two conf files. One of the files controls the URL and the other controls the virtual host. Once you configure the virtual host file, it overrides the default configuration.
@lokeshraj5460
@lokeshraj5460 Год назад
Superb video. Superb vibe. Explained so many different things so simply. Just loved it. Happy to be your 100th subscriber. Keep the fun works incoming.
@danmurphy4802
@danmurphy4802 Год назад
Accomplish so much in this short video - thanks for your work here!
@victoro6651
@victoro6651 3 года назад
Nice vid. Just want to add that changing DNS name server in the domain name is optional. you can just set your zones directly in your registrar while keeping default nameservers intact.
@G-H-C
@G-H-C 2 года назад
Such a great tutorial! Easy to follow and most importantly works first try 🙏 Sincere thank you to Jose for this video
@duyhungtrinh3990
@duyhungtrinh3990 Год назад
Really appreciate the efforts you put in this video Jose, this video helps me from struggling, thank you so much.
@zbigniewjson9696
@zbigniewjson9696 3 года назад
Thank you so much, It actually worked and I was able to host my app on lightsail! 10/10
@MrBenny1010101
@MrBenny1010101 7 месяцев назад
Fantastic everything worked first try I almost didn't catch that in my instance when making the vhost files is that the start of the path was /opt/ not /home/ as in yours.. make sure you check the entire string haha. Other than that.. got my sever up and running with https in minutes. Thanks!
@j.j.mendoza4347
@j.j.mendoza4347 2 года назад
Thanks Jose. I, too, saved a lot of time because of your video.
@tomfrankland8889
@tomfrankland8889 3 года назад
Legend! Thank you so much for this great video
@shikomatlala
@shikomatlala Год назад
A whole institution has been saved because of this
@spencerformayor4171
@spencerformayor4171 2 года назад
This was just what I needed. AWS doesn't have great documentation so I was wondering why Apache was part of my Lightsail NodeJS instance.
@kamalthennakoon1583
@kamalthennakoon1583 3 года назад
Saw your post on reddit 😍 keep up the good work.
@pratz_photography
@pratz_photography 2 года назад
Very simple explanation. Thank you.
@izrraelsandrea
@izrraelsandrea Год назад
Thanks Jose! good stuff.
@present_vs_future
@present_vs_future 2 года назад
hey first thanks for the video. Nice explanation! My question is, after i went to vim and changed the path and restarted apache the IP still needs the port in order to load the site. I updated both scripts for port 80 and 443. Has anything changed since you uploaded your video?
@garabudastingo
@garabudastingo 2 года назад
man you really helped me a lot. thanks for this
3 года назад
Great work man! Thanks a lot!
@Kruiger1993
@Kruiger1993 3 года назад
Great video, very well explained! cheers friend
@hs3982
@hs3982 11 месяцев назад
I did the exact same steps to install an app. But while generating the SSL certificate using the bncert tool - It gave me an error saying that automatic renewal could not be set up also the http to http redirection is not working. Any ideas?
@davidencinas86
@davidencinas86 Год назад
Just saved me a few hours, thank you
@yangdongjun
@yangdongjun Год назад
Great tutorial thanks
@andredallacosta
@andredallacosta 3 месяца назад
Very good, thanks man!
@navras-diaries
@navras-diaries 2 года назад
Thank you very much!!! amazing video and knowledge transfer
@workhomespace7709
@workhomespace7709 3 года назад
Thanks a lot. This works also in my Drupal installation. Liked and subscribed to your channel. :)
@jonasmellquist7140
@jonasmellquist7140 2 года назад
Hi Jose, thanks for creating this! I'd consider myself an intermediate vi user, but I've never stumbled upon :x for some odd reason, goodbye :wq 😂
@sarahfatima6127
@sarahfatima6127 2 года назад
this video is a savior!!! thankyouuuu!
@diegolikescode
@diegolikescode Год назад
impressive, very nice!
@rdbstrd1216
@rdbstrd1216 2 года назад
Thanks mate! very useful video! Great job! greetings from Ukraine )
@shailendraryvensingh
@shailendraryvensingh Год назад
Thank so much bro🙃💜
@vvmanikantakantipudi9919
@vvmanikantakantipudi9919 2 месяца назад
getting service unavailable after forever command runs
@luishron
@luishron 2 года назад
Great video! Thanks for sharing
@SamerLOLOfficial
@SamerLOLOfficial 2 года назад
The server doesn't keep alive when using forever command. Edit: I solved the issue using pm2.
@ModassirHossainRajib
@ModassirHossainRajib 8 месяцев назад
Legend!
@JB-ux3ri
@JB-ux3ri 3 года назад
Hello, thank you for the video, it's very useful. Can I ask a question? If I have environment variables in a single file, that I don't upload to Github... should I just use Filezilla to upload the environment variable file to my lightsail? Is that safe?
@bhavikkalariya4836
@bhavikkalariya4836 3 года назад
You can also use vm editor in lightshail terminal
@douglassalvagni4803
@douglassalvagni4803 3 года назад
I have the same question. I hope some one could help us on that
@alexlindgren1
@alexlindgren1 3 года назад
For some reason the HTTP -> HTTPS redirection isn't working for me, any ideas why?
@joswayski
@joswayski 3 года назад
9:45, this should be all that you need to do, perhaps there was a typo here (in the domain itself or the option to allow http --> https? ) however - I have seen times where it took me a few hours for this to go through the system :T There is no harm on redoing this step, so i would try this again! Also check that the domain names in the DNS zone are the same as the ones you used while creating the certificate (step 4 here) lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-wordpress#add-a-text-record-to-your-domains-dns-zone-lets-encrypt-wordpress or 2:16 in the video
@alexlindgren1
@alexlindgren1 3 года назад
@@joswayski Hm..Don't seem to be any typos and I've remade the process multiple times and also waited a day, but still not working (but if I write the https address manually it works fine) so it's just the redirect that isn't working
@rosewanjohi
@rosewanjohi 3 года назад
Hello @@alexlindgren1. Did you solve this? I am having the same problem.
@alexlindgren1
@alexlindgren1 3 года назад
@@rosewanjohi Yes. I posted a thread on the bitnami forum and got help, here is it if you have any use of it: community.bitnami.com/t/automatic-renewal-not-working-failed-and-https-redirection-not-working/91776/11
@rosewanjohi
@rosewanjohi 3 года назад
Thank you so much!
@MeeeeRP
@MeeeeRP Год назад
When I tried to log into git through the Terminal I got the error that "Support for password authentication was removed on August 13, 2021." What should I do about this. I am currently trying to install and configure Git Credential Manager but I am getting increasingly confused and kind of lost.
@joswayski
@joswayski Год назад
hey sorry for the late response! Can you check this link here and see if it fixes your problem? stackoverflow.com/a/68781050
@MeeeeRP
@MeeeeRP Год назад
@@joswayski no worries! Unfortunately the project was due a while ago and I ended up not using AWS so I don’t currently have the instance set up. Thank you for your helpful video otherwise, and your response.
@GusGuitarPD
@GusGuitarPD 3 года назад
Amazing! Thank SO MUCH!
@PetyXbron
@PetyXbron 3 года назад
Service Google Domains is not available in my country. Do you have any other recommendations?
@ChefOtang
@ChefOtang 2 года назад
This works for me
@SalmanQureshi-it7jy
@SalmanQureshi-it7jy 3 года назад
Hello, i followed this exact same video last week and it worked perfectly and routed everything from my custom port like yours was 3000, mine was 8080. And it worked perfectly. Im trying to redo it but its not working. I have to explicitly go to the port after the ip address. Any idea why it isnt working this time?
@AndrePaganotto
@AndrePaganotto 3 года назад
Bro this worked for me very fine but I had a websocket server plugged in my express server, and now its not working, should I do any configuration in the vhosts file?
@kkkagakko
@kkkagakko 2 года назад
감사합니다. 따봉과 구독 박고 갑니다.
@antonioplattner2892
@antonioplattner2892 3 года назад
Hello Jose. It does not let me make the web page secure, it appears to me that it resolves a different ip
@chaosjoerg9811
@chaosjoerg9811 3 года назад
Can you explain more precisely what happens around 3:55? What does rm -rf* do? And any idea why npm install does not work on my application?
@joswayski
@joswayski 3 года назад
rm -rf* deletes everything in that directory. What error are you receiving when doing npm install? It could be that you didnt change the directory into the folder of your app!
@hackerhubnft7675
@hackerhubnft7675 Год назад
Ate there any rate Limits etc... ?
@andrewndotela7407
@andrewndotela7407 3 года назад
This is very useful. thanks
@hs3982
@hs3982 3 года назад
I was wondering if there is a way to install a DB as well on the same instance? There are some images like LAMP and MEAN which provide DB in the same instance, but what if I want to have NodeJS + MySQL on my instance, can we do this?
@beatab
@beatab 3 года назад
Then you have two options, or install mysql-server on instance with template chosen, or you can chose "OS Only" select prefered OS, example Ubuntu and instal NodeJS and msql-server only, most likely you will need to install and configure nginx or apache too.
@bastianbuld6131
@bastianbuld6131 3 года назад
first of thank you great tutorial^^ , second off i have a question: is this app now going to show up when i perform a google search? or can it just be accessed by the direct url? and what woult i have to do to make it show up on google
@joswayski
@joswayski 3 года назад
It can be accessed by the URL and it will show up on google if the google algorithms pick it up, for that there are many things that you can do, including paying for advertisements. Check out these links here:support.google.com/webmasters/answer/34397?hl=en www.wix.com/blog/2018/10/how-to-get-your-business-found-on-google
@Superuser-r1y
@Superuser-r1y Год назад
Are you use Apache web server in this toturial???
@joswayski
@joswayski Год назад
Bitnam is using apache on the server, we are using node & express
@spencerbacay1860
@spencerbacay1860 2 года назад
i can upload my reactapp using node in lightsail?
@musicg6847
@musicg6847 3 года назад
Hello friend , I having a problem with lightsail (wordpress) . After Configuration of everything and pointing DNS to my site - My static IP address version Website is showing images but my domain name version of Website is not showing images. Posts are showing normally . The image bug thing only happens in chrome mobile version. But IP address version works on chrome mobile version without any problems. Dou you have any experience like this before ? Sorry for any trouble friend !
@joswayski
@joswayski 3 года назад
Unfortunately I do not have experience with wordpress :( I am sorry that I cannot assist
@vortextraininggroup9243
@vortextraininggroup9243 2 года назад
Hi - me again! Haha I am having an issue where everytime I use a post request it crashes out the server. It Only crashes when using forever. Any ideas?
@joswayski
@joswayski 2 года назад
Hey where you able to figure it out? This doesn't seem to be a forever issue but your server might have trouble parsing the incoming request (JSON) and crashing
@TheJammieRocker
@TheJammieRocker 2 года назад
@@joswayski hi, replying on my personal account. It did seem to be a forever issue as it worked just running it from the node command so I have set a systemd command to keep it running and no issues anymore
@vortextraininggroup9243
@vortextraininggroup9243 2 года назад
@@joswayski Hi, ive had to use a systemd command as even with the support of some amazon guru's there were baffled as to why it stopped working.
@staplepin8099
@staplepin8099 3 года назад
How do I do it if I’m self hosting it on my local machine ? 🥲
@adamalday01
@adamalday01 3 года назад
I created my 1st website using Html and Css. My script editor is ATOM, what blueprint do I use?
@joswayski
@joswayski 3 года назад
If you are hosting just a static site (HTMl and CSS), please ignore this video. I'm not familiar with Atom, however, I'm going to take a guess and say that you are pretty new to this and would recommend you use a tool like these to host your site: pages.github.com/ www.netlify.com/ Here is a tutorial: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QyFcl_Fba-k.html
@eylonshoshan86
@eylonshoshan86 Год назад
great video thanks! the link is broken now though, can you fix it please?
@joswayski
@joswayski Год назад
Link is fixed! Thanks for letting me know :) docs.bitnami.com/aws/infrastructure/nodejs/administration/create-custom-application-nodejs/
@hackerhubnft7675
@hackerhubnft7675 Год назад
What do I do if I wanna host 2 different application? Will I need to create a new vps ?
@joswayski
@joswayski Год назад
You certainly can, I wouldn't recommend it though as it will make the setup / networking more complicated. Here is a tutorial for EC2 medium.com/@nitin.malhotra/deploy-single-multiple-node-js-750ee6fee782 Regarding your other comment regarding rate limits(?), there is no rate limiting your server is open to the public internet. You could use Cloudflare or AWS Waf + Cloudfront in front of your instance for rate limiting.
@hackerhubnft7675
@hackerhubnft7675 Год назад
@@joswayski it's basically just changing ports ?
@joswayski
@joswayski Год назад
@@hackerhubnft7675 Yea, each app will run on a different port on the same server. The link i posted walks you through step by step and how to map the domain to each port in the proxy configuration
@vortextraininggroup9243
@vortextraininggroup9243 2 года назад
This was so much help thankyou! The only issue i am running into at the moment is, that it isn't redirecting to https? Any tips?
@joswayski
@joswayski 2 года назад
Make sure to set the second port (443) which takes incoming https traffic: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rtshCulV2hk.html
@TheJammieRocker
@TheJammieRocker 2 года назад
@@joswayski hi I did that, but it wasn’t working. I found out how to force redirect to it and it is working now
@user-cv3er1qj8y
@user-cv3er1qj8y 2 года назад
Thank you~~ How can I redirect static IP to domain?
@joswayski
@joswayski 2 года назад
Its at ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rtshCulV2hk.html 8:51 in the video
@Kruiger1993
@Kruiger1993 3 года назад
Is it also the same procedure for ReactJS app?
@joswayski
@joswayski 3 года назад
I do not recommend this for a react app front end, use something like this instead: github.com/serverless-components/website
@Kruiger1993
@Kruiger1993 3 года назад
@@joswayski I agree, but i already did. the question is how to make the "forever start" command for npm start
@aswinvijayakumar9331
@aswinvijayakumar9331 3 года назад
do not put port server running on terminal. that's really unless you want to use some jupyter notebook. Booh Yeah!
@RafaelMendes-yw2jm
@RafaelMendes-yw2jm Год назад
This video is very confusing, to be honest.
@joswayski
@joswayski Год назад
Which part is confusing? A lot of the other comments all say the exact opposite maybe I can clear something up and add annotations?
Далее
Deploy Node+React (MERN) app to AWS Lightsail
31:23
Просмотров 7 тыс.
Кого из блогеров узнали?
00:10
Просмотров 291 тыс.
СМАЗАЛ ДВЕРЬ
00:31
Просмотров 252 тыс.
Where to Host a Fullstack Project on a Budget
21:44
Просмотров 334 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 272 тыс.
Top 50+ AWS Services Explained in 10 Minutes
11:46
Просмотров 1,5 млн
Full Node.js Deployment - NGINX, SSL With Lets Encrypt
31:25