Deploy Node.js website on Heroku for Free

  Рет қаралды 126,019

Raddy

Raddy

Күн бұрын

Пікірлер: 272
@RaddyDev
@RaddyDev 4 жыл бұрын
What would you like to see next?
@anishjoshi1999
@anishjoshi1999 4 жыл бұрын
What is in the .env file ??
@RaddyDev
@RaddyDev 4 жыл бұрын
@@anishjoshi1999 that shouldn't be there haha. It was an API key for the NewsApi website
@anishjoshi1999
@anishjoshi1999 4 жыл бұрын
Explain MVC?
@DineshJayasiri
@DineshJayasiri 4 жыл бұрын
Angular production proxy config or solution for cros origin problems
@pravinpoudel1307
@pravinpoudel1307 3 жыл бұрын
cloning some web apps in react and node/express.
@muhammadalarabi4180
@muhammadalarabi4180 2 жыл бұрын
for the past like 2 weeks I've been struggling only this Heroku staff couldn't find any answer and today was my last day as after today if it doesn't work I'm quitting but I don't know how I came to this video and the magic happened thanks, man, really thank you so much
@ankit_kr_roy_4c_105
@ankit_kr_roy_4c_105 3 жыл бұрын
You look like real Madrid forward benzema😂😂😂😂😂😂😂😂😂...btw helpful vid👍👍
@RaddyDev
@RaddyDev 3 жыл бұрын
😂😂😂😂😂😂😂
@RurouniKenshinShinta
@RurouniKenshinShinta 3 жыл бұрын
Holy shit! You are a legend! This finally worked for me after trying to troubleshoot an error for an hour and half. Thanks!
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad that you found it helpful, Kintsugi. Thank you for watching!
@upzaiz8095
@upzaiz8095 3 жыл бұрын
Thanks.. This was really helpful for me. I deployed my application in 10 min right after watching this. Also need to mention that for the free version, in memory data will be erased if there is no in coming traffic for a particular time. (May be 30 min)
@RaddyDev
@RaddyDev 3 жыл бұрын
Good point. Glad that you found the video useful! Thanks for the comment
@akuakana7364
@akuakana7364 3 жыл бұрын
Ephemeral file system. Resets every 24 hours with traffic and with no traffic every 30 minutes.
@ABHAYSINGH-ch1vn
@ABHAYSINGH-ch1vn 3 жыл бұрын
Dude u solved my 6hrs long problem in just 8 mins and 39 secs Thank You so muchhh!!!!!!
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad to hear that the video was helpful!
@nerdiloo9863
@nerdiloo9863 3 жыл бұрын
Cool - just a reminder that if you should add node modules f(and any other files that aren't used in the final build) to the git ignore file. That way all that stuff won't be uploaded.
@coderlady_
@coderlady_ 3 жыл бұрын
I like the simplicity of your explanations, just subscribed :)
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you, CoderLady! I appreciate you subscribing
@blueandraedevera8084
@blueandraedevera8084 2 жыл бұрын
YOU GOT A NEW SUB. KEEP IT UP MAN
@RaddyDev
@RaddyDev 2 жыл бұрын
I appreciate it, Blue!
@MohamedAbdulRaouf
@MohamedAbdulRaouf 3 жыл бұрын
man i liked your style and setup
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you, I appreciate it!
@ahmedmahmoodhameed2585
@ahmedmahmoodhameed2585 3 жыл бұрын
Thank you very much. Finally I deployed my website after week of suffering.
@RaddyDev
@RaddyDev 3 жыл бұрын
No pain, no gain 💪
@jatilyadav4000
@jatilyadav4000 3 жыл бұрын
you are best....love from India
@Kaiz__
@Kaiz__ 2 жыл бұрын
Thank's for the tutorial, still working in 2022 :)
@RaddyDev
@RaddyDev 2 жыл бұрын
That's always good to hear
@J151366
@J151366 3 жыл бұрын
I love that "Heroku" at the beginning
@RaddyDev
@RaddyDev 3 жыл бұрын
😄😄😄
@zulianadryan686
@zulianadryan686 2 жыл бұрын
thank you mate, helped me a lot
@NoiceHD
@NoiceHD 3 жыл бұрын
Thanks Raddy, helped a lot. Works perfectly for me
@RaddyDev
@RaddyDev 3 жыл бұрын
I am glad that it worked. Thanks for the comment 👊🦍
@abubakirmahkamov
@abubakirmahkamov 2 жыл бұрын
Thank you .This video realy helps me
@rahsidqk
@rahsidqk 10 ай бұрын
Nice and straight forward thanks
@GalileoBTC
@GalileoBTC 2 жыл бұрын
thanks for your help, dude!
@marcosanna8039
@marcosanna8039 4 жыл бұрын
great video man, you've earned a sub! Keep it up
@RaddyDev
@RaddyDev 3 жыл бұрын
Thanks for the sub!
@mathistruth9105
@mathistruth9105 2 жыл бұрын
Wow. Thanks a lot man!!
@RaddyDev
@RaddyDev 2 жыл бұрын
Happy to help!
@csy897
@csy897 3 жыл бұрын
Short and easy to follow. Thanks!
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you for watching!
@mustafakosmaz178
@mustafakosmaz178 3 жыл бұрын
in the end it worked! thanks
@RaddyDev
@RaddyDev 3 жыл бұрын
I am glad that it worked
@jandesterke9608
@jandesterke9608 4 жыл бұрын
Maybe do an explanation on how to connect a domain to your heroku app so itt's ready to go live.
@RaddyDev
@RaddyDev 4 жыл бұрын
That's a good idea. I will do that, thank you
@justnhu118
@justnhu118 3 жыл бұрын
Thank you very much! It's very useful so I can submit my deadline on time
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad that you found it useful! Good luck with the project
@Dcooper676
@Dcooper676 3 жыл бұрын
wowo wowowo i can't express myself, i am trying from yesterday but i didn't find a tutorial like this!!!!!
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad that you like the video. Thanks for the comment!
@jamesmassa1999
@jamesmassa1999 3 жыл бұрын
Thank You for taking the time to produce this video, this was helpful. Oh, and get a haircut you, hippie! Best
@RaddyDev
@RaddyDev 3 жыл бұрын
😂😂
@benkimtai5995
@benkimtai5995 2 жыл бұрын
Pretty simple. I am Grateful
@喜愛星光的米奇
@喜愛星光的米奇 3 жыл бұрын
Thank you very much!!! It's really useful and clear to follow your steps.
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad to hear that. Thank you for the comment!
@pushkarjain2494
@pushkarjain2494 3 жыл бұрын
Spot on explanation
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad you liked it
@hidezet
@hidezet 3 жыл бұрын
Thank you for kind video! I am heroku deploy-possible person now! :-)
@RaddyDev
@RaddyDev 3 жыл бұрын
I love it! Thanks for the comment, Juan
@shubhangarbeeragere9060
@shubhangarbeeragere9060 3 жыл бұрын
this actually works!!!!!!!!! thank you
@RaddyDev
@RaddyDev 3 жыл бұрын
Haha of course it does. Thank you for the comment
@AroundTheScene
@AroundTheScene 2 жыл бұрын
Thanks, I missed the Procfile!
@RaddyDev
@RaddyDev 2 жыл бұрын
There was a way to make it work without the Procfile. If it works, don't fix it :-D
@cesaremannino2774
@cesaremannino2774 3 жыл бұрын
Hi Raddy, next you could do a tutorial on how to deploy a node.js with MySQL database on Heroku! Thanks for all the cool videos.
@RaddyDev
@RaddyDev 3 жыл бұрын
Hey Cesare, thank you for the comment and I like the suggestion. I will add it to my list
@jcdsr1
@jcdsr1 3 жыл бұрын
Nice content, well done. However, you missed all the security implementation in expressjs and how to deploy as production and having an environment for testing. Will be nice to have this. On Heroku do we need to add DB on heroku plan? What about azure
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you. Yeah, there is tons more that can be covered. I guess once you get started you can always refer to the documentation. You can use their database functionality even on the free hobby plan if this is what you were asking. Azure is another beast, so it's Google cloud, AWS and so on... Plenty of options 🙂
@suaterklc6425
@suaterklc6425 4 жыл бұрын
Great video! Thanks.
@RaddyDev
@RaddyDev 4 жыл бұрын
Thank you for watching 👌
@hayatokoyama4034
@hayatokoyama4034 2 жыл бұрын
Thank you !! amazing
@thestar001Official
@thestar001Official 10 ай бұрын
In the Procfile you would have to use the actual name of your server file.
@Husseinfaqih
@Husseinfaqih 3 жыл бұрын
Cheers Mate!
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you for watching!
@diyahanggraini8461
@diyahanggraini8461 2 жыл бұрын
thank you so muchh, you save my day!!!!
@RaddyDev
@RaddyDev 2 жыл бұрын
Any time, Diyah!
@Frest99
@Frest99 3 жыл бұрын
Nice! Very easy. Thank you
@RaddyDev
@RaddyDev 3 жыл бұрын
Glad that you found it easy! Thanks for the comment!
@ChaeRi9
@ChaeRi9 2 жыл бұрын
Thanks bro
@RaddyDev
@RaddyDev 2 жыл бұрын
👊😎
@oleksandr8482
@oleksandr8482 3 жыл бұрын
Thank you, bro!
@RaddyDev
@RaddyDev 3 жыл бұрын
Thanks for the comment, bro! I appreciate it
@jessdeng9084
@jessdeng9084 3 жыл бұрын
If I want to make my API key as the privacy to .env file. So what should I make change on the get method newsAPI =? of news.js file?
@RaddyDev
@RaddyDev 3 жыл бұрын
You need to require dot env somewhere at the top of your app.js: require('dotenv').config() In your .env file you can add something like: APP_KEY = your API key And to use the variable in your application you would do something like: process.env.API_KEY I hope this helps
@rudocourtneytogara6791
@rudocourtneytogara6791 2 жыл бұрын
Thank you so much!
@RaddyDev
@RaddyDev 2 жыл бұрын
Glad it helped!
@5555aramacomom
@5555aramacomom 3 жыл бұрын
Merci. T'es un mec bien
@RaddyDev
@RaddyDev 3 жыл бұрын
Merci beaucoup
@stepanvalerivich6999
@stepanvalerivich6999 3 жыл бұрын
you're a lifesaver
@RaddyDev
@RaddyDev 3 жыл бұрын
👊😎
@nahidkarimankur4828
@nahidkarimankur4828 4 жыл бұрын
Thank you man! Subscribe done
@RaddyDev
@RaddyDev 4 жыл бұрын
Thanks for the support, brother! 👊🦍
@shauryaagarwal4689
@shauryaagarwal4689 3 жыл бұрын
Can anyone please help me!!! I'm not able to use the git command in my vs code. It's showing that 'git' command cannot is not recognized.
@RaddyDev
@RaddyDev 3 жыл бұрын
Try installing Git if you havent
@shauryaagarwal4689
@shauryaagarwal4689 3 жыл бұрын
@@RaddyDev Thanks. Worked!!!!!
@RaddyDev
@RaddyDev 3 жыл бұрын
@@shauryaagarwal4689 that's awesome!
@scottieblangeres9656
@scottieblangeres9656 2 жыл бұрын
Would I need to create a new repository and just move the code over from the old one to make this work, or can I do it with an already existing repo
@RaddyDev
@RaddyDev 2 жыл бұрын
Already existing repo is fine
@kostya45
@kostya45 3 жыл бұрын
Great video, 10x
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you!
@enricoperez9147
@enricoperez9147 3 жыл бұрын
is it just me or the audio and video are not synced?
@RaddyDev
@RaddyDev 3 жыл бұрын
You are right, the audio is out of sync. No idea why that would have happened as I would have noticed when I was editing the video
@scottisitt
@scottisitt 3 жыл бұрын
This is pretty confusing with the instructions not matching what's on the video... Still appreciate the explanation, though. 👍
@RaddyDev
@RaddyDev 3 жыл бұрын
I appreciate your comment. Unfortunately the instructions do change. I might have to update the article on my blog
@uploadvoice
@uploadvoice 3 жыл бұрын
Great video ! Btw what are the limitations for the free plan ?
@RaddyDev
@RaddyDev 3 жыл бұрын
The free plan is for non-commercial apps, such as proof of concepts, MVP's, and personal projects
@RohitVerma-fd8cl
@RohitVerma-fd8cl 3 жыл бұрын
Thankyou Very Much!!!
@RaddyDev
@RaddyDev 3 жыл бұрын
Thanks for watching, Rohit!
@zkp143_
@zkp143_ 3 жыл бұрын
How to update npm on heruko ? Had deployed a project. But shows npm have a major update. Update to 8.... Vers. So how can i do ? Did i want to edit in project through git ? Or any other way ?
@RaddyDev
@RaddyDev 3 жыл бұрын
If you want to update your npm packages I would first test locally and then reupload. You can probably do it with the CLI, but I haven't tested it. It might be the case of doing npm update
@abbg1436
@abbg1436 2 жыл бұрын
Thanks !!!!!
@CarpMasterFishing
@CarpMasterFishing 2 жыл бұрын
Hi Raddy! Thank you for your tutorial, working perfectly! I have one question for you. Is it possible to do, that on heroku save the upload file permamently? Because I have a nodejs website, where I have an image upload page, heroku save the image, but after a few hours, i see only blank images.
@RaddyDev
@RaddyDev 2 жыл бұрын
Hey, I am glad that it worked. I just had a look and you are right. "Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted." You might have to use Cloud Storage. Companies such as Google, Amazon& IBM offer cloud storage. There might be something cheap or even free out there. I've only used Heroku for basic websites and I didn't realise that they reset the files.
@CarpMasterFishing
@CarpMasterFishing 2 жыл бұрын
@@RaddyDev thank you for your answer! i will try to fix it with cloud storage, if not working, then I need to deploy on a paid server. Sure, for basic website is a very good alternative to try your website on server for free! :)
@masterpc-9845x
@masterpc-9845x 3 жыл бұрын
I got an error when trying to open the app. I got this " Error: Cannot find module 'express' when I checked with heroku logs. What happened?
@RaddyDev
@RaddyDev 3 жыл бұрын
You need to add express as dependency to your project. Heroku install them via npm install so you need to have it listed in your package.json
@masterpc-9845x
@masterpc-9845x 3 жыл бұрын
@@RaddyDev I've fix it already. Thanks a lot!
@aasthajha1051
@aasthajha1051 3 жыл бұрын
hey! I'm having links on my web pages that when clicked open a new ejs web page. It work totally fine in local server.But when hosted on heroku it give error that is Application error and unable to open the ejs page when click on the links
@RaddyDev
@RaddyDev 3 жыл бұрын
Hey, Aastha! It sounds like it could be the path to your files. It's obviously finding the pages locally, but for some reason not on heroku. You could set a static folder to be used if you haven't done that. Anyway, double check your path
@pp.uta7
@pp.uta7 3 жыл бұрын
what about database ? can i use database in heroku ?
@RaddyDev
@RaddyDev 3 жыл бұрын
You can do. I believe that they have quite a few options
@rasulakhundov500
@rasulakhundov500 2 жыл бұрын
Thank you so much
@alanbiju1751
@alanbiju1751 4 жыл бұрын
What to do if I have MySQL database connection with my node js project
@RaddyDev
@RaddyDev 4 жыл бұрын
Instead of localhost you could remote connect to it and it should still work
@alanbiju1751
@alanbiju1751 4 жыл бұрын
@@RaddyDevok thanks man
@nguyenuc9135
@nguyenuc9135 2 жыл бұрын
i try do like your tutorial. But when i open app with heroku, on page show this message: Upgrade Required. Tell me what's it and how to fix! my project is websocket server.
@RaddyDev
@RaddyDev 2 жыл бұрын
I am not sure what it could be. Did you not find anything on the web?
@otonielcarlos2099
@otonielcarlos2099 3 жыл бұрын
Whats your vs code template? looks clean
@RaddyDev
@RaddyDev 3 жыл бұрын
Hi Otoniel, it's called Dracula 🧛‍♂️
@otonielcarlos2099
@otonielcarlos2099 3 жыл бұрын
@@RaddyDev Nice I just installed it and its fire. thanks!
@eliaserbenjamin6892
@eliaserbenjamin6892 4 жыл бұрын
Struggling to install cli for Mac on Command line, help?
@RaddyDev
@RaddyDev 4 жыл бұрын
First, you have to get Homebrew which is a package manager for macOS & Linux. Go their page brew.sh and install it. They have one command installation. Once you do this, try Heroku CLI again. I hope that this works!
@iman8120
@iman8120 3 жыл бұрын
Can I deploy web socket project in heroku?
@Bartman2Dilaw
@Bartman2Dilaw 2 жыл бұрын
Hi Raddy, Thanks for sharing, it will be helpful. Unfortunately, the "local" and remote (heroku) versions do not work. I am indeed not getting any record on the "/" route In "local" I get "no posts found" but no error on console. On the "heroku" version, I get an error on the heroku console of the project: "Error connect ECONNREFUSED 94.136.40.82:443" I don't know what to do. Thanks for your help Alain
@RaddyDev
@RaddyDev 2 жыл бұрын
Hi Alain, thanks for the comment. I know what the problem is. A few days ago I changed my domain name and hosting IP address. Unfortunately I had a few issues with my domain and I couldn't do a re-direct on the same day. The redirect should work now and you won't get the error. Alternatively you can try raddy.dev. Saying this I do have some firewall protection in place which could also block access. It has happened once. Hopefully it will just work now, but I will make a note for other people
@Bartman2Dilaw
@Bartman2Dilaw 2 жыл бұрын
@@RaddyDev Thank you. I've already tried the raddy.dev link without success as far as I remember. I'll try again later and let you know
@RaddyDev
@RaddyDev 2 жыл бұрын
Okay let me know. It might be my firewall... You can try pretty much any WordPress website that has their rest API open
@shubhanshusahuu
@shubhanshusahuu 3 жыл бұрын
Deployed successfully but it is showing Application error "An error occurred in the application and your page could not be served.
@RaddyDev
@RaddyDev 3 жыл бұрын
Check to see if you are using process.env.PORT instead of hand-coding it
@shubhanshusahuu
@shubhanshusahuu 3 жыл бұрын
@@RaddyDev i am using first one and pipe sign then 3000 port number
@RaddyDev
@RaddyDev 3 жыл бұрын
This looks just like your problem: github.com/StartBootstrap/startbootstrap-freelancer/issues/89 Hopefully the answer on there will help
@shubhanshusahuu
@shubhanshusahuu 3 жыл бұрын
@@RaddyDev i got that I putted a white space after web in Procfile, now i removed it and it worked👍
@govindjain424
@govindjain424 2 жыл бұрын
Thanks, it was a great tutorial. But you missed one thing to install git. I was not having git and it created some problem.
@RaddyDev
@RaddyDev 2 жыл бұрын
It really didn't cross my mind... thanks for letting me know, I will have to put a note on the video
@the42project-c8h
@the42project-c8h Ай бұрын
Works with MongoDB app?
@njohbless
@njohbless 11 ай бұрын
does the site all you to host website for free with a domain name and hosting ?
@RaddyDev
@RaddyDev 11 ай бұрын
Try Render as I don't think that this is free anymore
@macos-brasil1814
@macos-brasil1814 2 жыл бұрын
HUNDREDS OF THOUSANDS OF LIKES! Thanks
@RaddyDev
@RaddyDev 2 жыл бұрын
I appreciate you!
@par4ll4x15
@par4ll4x15 2 жыл бұрын
Thank you sir
@ayoubomari1347
@ayoubomari1347 3 жыл бұрын
thank you very much
@RaddyDev
@RaddyDev 3 жыл бұрын
I hope that it was helpful. Thank you 👊😎
@F1World2023
@F1World2023 2 жыл бұрын
After adding git add. So many statements come it's end less why is that so?
@RaddyDev
@RaddyDev 2 жыл бұрын
What do they say? Usually they are quite informative. Look at what the errors are and just look online how to solve them
@jatilyadav4000
@jatilyadav4000 3 жыл бұрын
thank you soo much sir...........
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you, Jatil!
@ryan_roga
@ryan_roga 2 жыл бұрын
Do you still need a Procfile in 2022? 🤔
@RaddyDev
@RaddyDev 2 жыл бұрын
Nope. The setup now is fairly straightforward
@ml-rj5pt
@ml-rj5pt Жыл бұрын
Is it really free? One week after I deploy a sample app to Heroku, I suddenly got an email saying I got a charge - $1.23 for Application dynos. I don't remember what application dynos is.
@RaddyDev
@RaddyDev Жыл бұрын
Heroku is no longer free. If you started on the free tier, they would have warned you that your instance will stop working. They won't just randomly start charging you (I don't think). You've signed up to their paid tier by the sound of it. Cyclic and Render have free plans that you could try
@Bodige_Sri_Charan_Goud
@Bodige_Sri_Charan_Goud Ай бұрын
Is heroku free to use now i.e (10/2024) Should i follow same steps to deploy my project
@RaddyDev
@RaddyDev Ай бұрын
Heroku is no longer free. A lot of the free options are now gone. Try Render or Vercel, the process of publishing a project if more or less the same on every platform
@ahmedayman7626
@ahmedayman7626 3 жыл бұрын
Thanks :)
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you for watching!
@jpjapos2427
@jpjapos2427 3 жыл бұрын
What's that file with .env extension. I'm having an application error
@RaddyDev
@RaddyDev 3 жыл бұрын
.env holds environment variables. In this example, we are storing our database host, user, and password. You can store all sorts of stuff in there. I actually just done a full tutorial on .env if you want to check it out. It's one of the last videos that I've done
@Lelouchvv
@Lelouchvv 3 жыл бұрын
thank you!!!
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you for watching! 👊😎
@anishjoshi1999
@anishjoshi1999 4 жыл бұрын
love from nepal
@RaddyDev
@RaddyDev 4 жыл бұрын
Thank you 👊🦍
@endless4785
@endless4785 2 жыл бұрын
Heroku free dyno will no longer available on November 28 sad/
@RaddyDev
@RaddyDev 2 жыл бұрын
That's a shame... we need to find a good alternative
@thanosx5190
@thanosx5190 4 жыл бұрын
i am getting a h10 error for get and post requests and my website has been crashed can you please help me out with this
@RaddyDev
@RaddyDev 4 жыл бұрын
It could be a number of things. Have a look at this article by Lawrence Eagles: dev [dot] to/lawrence_eagles/causes-of-heroku-h10-app-crashed-error-and-how-to-solve-them-3jnl
@thanosx5190
@thanosx5190 4 жыл бұрын
@@RaddyDev thanks pal
@morososaas3397
@morososaas3397 3 жыл бұрын
If your package.json is not in the root directory. It cannot do this.
@RaddyDev
@RaddyDev 3 жыл бұрын
Thanks for the comment, Moroso! 🙂
@deepakajay4204
@deepakajay4204 3 жыл бұрын
Thank you
@RaddyDev
@RaddyDev 3 жыл бұрын
Thank you for watching!
@mohammedshafin7399
@mohammedshafin7399 2 жыл бұрын
Thanks
@KmeOst
@KmeOst 3 жыл бұрын
Muchas gracias !
@RaddyDev
@RaddyDev 3 жыл бұрын
Se lo agradezco mucho!
@Pranauv
@Pranauv 2 жыл бұрын
im always getting port not binding error!!! pls help anybody .. i have tried literally everything but none are working!
@RaddyDev
@RaddyDev 2 жыл бұрын
Heroku automatically assigns the port number. So what you have to do is this: .listen(process.env.PORT || 5000)
@Pranauv
@Pranauv 2 жыл бұрын
@@RaddyDev I've tried that too... It isn't working 😶
@RaddyDev
@RaddyDev 2 жыл бұрын
@@Pranauv In the logs can you see an error code? Usually you can google that and hopefully find the answer. I am not sure what else it could be
@Pranauv
@Pranauv 2 жыл бұрын
@@RaddyDev ok thanks
@devajithp4184
@devajithp4184 2 жыл бұрын
what if the running file is in a subfolder
@RaddyDev
@RaddyDev 2 жыл бұрын
in your package.json file, you can specify the subfolder and it should be fine
@salihhasan9662
@salihhasan9662 2 жыл бұрын
Heroku guy 👍👍👍👍
@ratefiarisonharivonylalati3873
@ratefiarisonharivonylalati3873 2 жыл бұрын
Bro, your pic hide all the command
@RaddyDev
@RaddyDev 2 жыл бұрын
Yep... mistakes were made there... I don't record my head now :-D
@checkerface5710
@checkerface5710 2 жыл бұрын
wait is heroku like github ?
@RaddyDev
@RaddyDev 2 жыл бұрын
It's a little bit different. You can pretty much deploy projects in most languages and also manage data services. You can pick any database and get it installed fairly easy. I am not sure if you could run a node js project on github... I think that you can only have static web pages?
@rayarozen
@rayarozen 2 жыл бұрын
error: failed to push some refs to....
@RaddyDev
@RaddyDev 2 жыл бұрын
You probably haven't committed. git commit -m 'message'
@zeyadalbadawy2245
@zeyadalbadawy2245 2 жыл бұрын
reach 96% and didn't complete why is that ?
@RaddyDev
@RaddyDev 2 жыл бұрын
You have to check the error logs in Heroku and they will tell you. It might give you an error code that you can google
@darktools186
@darktools186 2 жыл бұрын
Is it secure ? I have sensible information in my node js files
@RaddyDev
@RaddyDev 2 жыл бұрын
As far as I know it's secure. Heroku is pretty big
@darktools186
@darktools186 2 жыл бұрын
@@RaddyDev how can I update my git ?
@RaddyDev
@RaddyDev 2 жыл бұрын
@@darktools186 on windows you can do "git update" or "git update-git-for-windows" and on Linux you can do "sudo apt-get update" and then "sudo apt-get install git". I am not so sure about mac os. Also I do want to mention that storing sensitive information in your nodejs files might not be a good idea. Maybe use .env or some of the paid services. Just be careful that's all. Don't publish your nodejs project on github with all of the sensitive information that you are talking about. Other than that Heroku is a pretty well known service and in general people really like it. Shame that they are closing down their free tier...
@darktools186
@darktools186 2 жыл бұрын
@@RaddyDev thank you bro. Amazing video btw
@libertydaniel6366
@libertydaniel6366 3 жыл бұрын
How can I solve error in heroku cannot GET/
@RaddyDev
@RaddyDev 3 жыл бұрын
Create a router for the page. Make sure that your project is working locally first and then you can upload
@libertydaniel6366
@libertydaniel6366 3 жыл бұрын
@@RaddyDev it's working locally. Like everything is well i even refactoring my code. Like to put the GET / route nut it's still the same
@RaddyDev
@RaddyDev 3 жыл бұрын
That's really strange. You could check in the Heroku logs to see if there are any errors. Is your project public on GitHub? It could be something small
@libertydaniel6366
@libertydaniel6366 3 жыл бұрын
@@RaddyDev I found the error it's refusing to send my react file when on heroku but in local dev it's working perfectly. This the error I get ..Error: ENOENT: no such file or directory, stat '/build/index.html'
@RaddyDev
@RaddyDev 3 жыл бұрын
@@libertydaniel6366 So I wound assume that you just need to build your project and then upload. Glad that you spotted that
@kaydang8933
@kaydang8933 6 ай бұрын
it is not free anymore :
Deploy your first App with Heroku and Node.js
8:09
Jonny Kalambay
Рет қаралды 217 М.
Build Your Own Retro Gaming Website: Next.Js 14 + Prisma
7:32:48
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Deploy your website for free with Cloudflare Pages and GitHub!
13:47
3 Alternatives for Heroku's Free Tier - Full Stack & API Hosting
13:04
Traversy Media
Рет қаралды 224 М.
Host Node JS Application for FREE on Back4App || NodeJS FREE Hosting
10:48
How to Deploy a PERN application on Heroku
43:50
Quacklearner
Рет қаралды 33 М.
How to build a REST API with Node js & Express
58:40
Programming with Mosh
Рет қаралды 1,8 МЛН
Node.js: The Documentary | An origin story
1:02:49
Honeypot
Рет қаралды 687 М.
Node.js Passport Login System Tutorial
36:28
Web Dev Simplified
Рет қаралды 1 МЛН
Deploy NodeJS Application on AWS - Amazon Web Services | NodeJS
19:51