@@anishjoshi1999 that shouldn't be there haha. It was an API key for the NewsApi website
@anishjoshi19994 жыл бұрын
Explain MVC?
@DineshJayasiri4 жыл бұрын
Angular production proxy config or solution for cros origin problems
@pravinpoudel13073 жыл бұрын
cloning some web apps in react and node/express.
@muhammadalarabi41802 жыл бұрын
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_1053 жыл бұрын
You look like real Madrid forward benzema😂😂😂😂😂😂😂😂😂...btw helpful vid👍👍
@RaddyDev3 жыл бұрын
😂😂😂😂😂😂😂
@RurouniKenshinShinta3 жыл бұрын
Holy shit! You are a legend! This finally worked for me after trying to troubleshoot an error for an hour and half. Thanks!
@RaddyDev3 жыл бұрын
Glad that you found it helpful, Kintsugi. Thank you for watching!
@upzaiz80953 жыл бұрын
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)
@RaddyDev3 жыл бұрын
Good point. Glad that you found the video useful! Thanks for the comment
@akuakana73643 жыл бұрын
Ephemeral file system. Resets every 24 hours with traffic and with no traffic every 30 minutes.
@ABHAYSINGH-ch1vn3 жыл бұрын
Dude u solved my 6hrs long problem in just 8 mins and 39 secs Thank You so muchhh!!!!!!
@RaddyDev3 жыл бұрын
Glad to hear that the video was helpful!
@nerdiloo98633 жыл бұрын
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_3 жыл бұрын
I like the simplicity of your explanations, just subscribed :)
@RaddyDev3 жыл бұрын
Thank you, CoderLady! I appreciate you subscribing
@blueandraedevera80842 жыл бұрын
YOU GOT A NEW SUB. KEEP IT UP MAN
@RaddyDev2 жыл бұрын
I appreciate it, Blue!
@MohamedAbdulRaouf3 жыл бұрын
man i liked your style and setup
@RaddyDev3 жыл бұрын
Thank you, I appreciate it!
@ahmedmahmoodhameed25853 жыл бұрын
Thank you very much. Finally I deployed my website after week of suffering.
@RaddyDev3 жыл бұрын
No pain, no gain 💪
@jatilyadav40003 жыл бұрын
you are best....love from India
@Kaiz__2 жыл бұрын
Thank's for the tutorial, still working in 2022 :)
@RaddyDev2 жыл бұрын
That's always good to hear
@J1513663 жыл бұрын
I love that "Heroku" at the beginning
@RaddyDev3 жыл бұрын
😄😄😄
@zulianadryan6862 жыл бұрын
thank you mate, helped me a lot
@NoiceHD3 жыл бұрын
Thanks Raddy, helped a lot. Works perfectly for me
@RaddyDev3 жыл бұрын
I am glad that it worked. Thanks for the comment 👊🦍
@abubakirmahkamov2 жыл бұрын
Thank you .This video realy helps me
@rahsidqk10 ай бұрын
Nice and straight forward thanks
@GalileoBTC2 жыл бұрын
thanks for your help, dude!
@marcosanna80394 жыл бұрын
great video man, you've earned a sub! Keep it up
@RaddyDev3 жыл бұрын
Thanks for the sub!
@mathistruth91052 жыл бұрын
Wow. Thanks a lot man!!
@RaddyDev2 жыл бұрын
Happy to help!
@csy8973 жыл бұрын
Short and easy to follow. Thanks!
@RaddyDev3 жыл бұрын
Thank you for watching!
@mustafakosmaz1783 жыл бұрын
in the end it worked! thanks
@RaddyDev3 жыл бұрын
I am glad that it worked
@jandesterke96084 жыл бұрын
Maybe do an explanation on how to connect a domain to your heroku app so itt's ready to go live.
@RaddyDev4 жыл бұрын
That's a good idea. I will do that, thank you
@justnhu1183 жыл бұрын
Thank you very much! It's very useful so I can submit my deadline on time
@RaddyDev3 жыл бұрын
Glad that you found it useful! Good luck with the project
@Dcooper6763 жыл бұрын
wowo wowowo i can't express myself, i am trying from yesterday but i didn't find a tutorial like this!!!!!
@RaddyDev3 жыл бұрын
Glad that you like the video. Thanks for the comment!
@jamesmassa19993 жыл бұрын
Thank You for taking the time to produce this video, this was helpful. Oh, and get a haircut you, hippie! Best
@RaddyDev3 жыл бұрын
😂😂
@benkimtai59952 жыл бұрын
Pretty simple. I am Grateful
@喜愛星光的米奇3 жыл бұрын
Thank you very much!!! It's really useful and clear to follow your steps.
@RaddyDev3 жыл бұрын
Glad to hear that. Thank you for the comment!
@pushkarjain24943 жыл бұрын
Spot on explanation
@RaddyDev3 жыл бұрын
Glad you liked it
@hidezet3 жыл бұрын
Thank you for kind video! I am heroku deploy-possible person now! :-)
@RaddyDev3 жыл бұрын
I love it! Thanks for the comment, Juan
@shubhangarbeeragere90603 жыл бұрын
this actually works!!!!!!!!! thank you
@RaddyDev3 жыл бұрын
Haha of course it does. Thank you for the comment
@AroundTheScene2 жыл бұрын
Thanks, I missed the Procfile!
@RaddyDev2 жыл бұрын
There was a way to make it work without the Procfile. If it works, don't fix it :-D
@cesaremannino27743 жыл бұрын
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.
@RaddyDev3 жыл бұрын
Hey Cesare, thank you for the comment and I like the suggestion. I will add it to my list
@jcdsr13 жыл бұрын
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
@RaddyDev3 жыл бұрын
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 🙂
@suaterklc64254 жыл бұрын
Great video! Thanks.
@RaddyDev4 жыл бұрын
Thank you for watching 👌
@hayatokoyama40342 жыл бұрын
Thank you !! amazing
@thestar001Official10 ай бұрын
In the Procfile you would have to use the actual name of your server file.
@Husseinfaqih3 жыл бұрын
Cheers Mate!
@RaddyDev3 жыл бұрын
Thank you for watching!
@diyahanggraini84612 жыл бұрын
thank you so muchh, you save my day!!!!
@RaddyDev2 жыл бұрын
Any time, Diyah!
@Frest993 жыл бұрын
Nice! Very easy. Thank you
@RaddyDev3 жыл бұрын
Glad that you found it easy! Thanks for the comment!
@ChaeRi92 жыл бұрын
Thanks bro
@RaddyDev2 жыл бұрын
👊😎
@oleksandr84823 жыл бұрын
Thank you, bro!
@RaddyDev3 жыл бұрын
Thanks for the comment, bro! I appreciate it
@jessdeng90843 жыл бұрын
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?
@RaddyDev3 жыл бұрын
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
@rudocourtneytogara67912 жыл бұрын
Thank you so much!
@RaddyDev2 жыл бұрын
Glad it helped!
@5555aramacomom3 жыл бұрын
Merci. T'es un mec bien
@RaddyDev3 жыл бұрын
Merci beaucoup
@stepanvalerivich69993 жыл бұрын
you're a lifesaver
@RaddyDev3 жыл бұрын
👊😎
@nahidkarimankur48284 жыл бұрын
Thank you man! Subscribe done
@RaddyDev4 жыл бұрын
Thanks for the support, brother! 👊🦍
@shauryaagarwal46893 жыл бұрын
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.
@RaddyDev3 жыл бұрын
Try installing Git if you havent
@shauryaagarwal46893 жыл бұрын
@@RaddyDev Thanks. Worked!!!!!
@RaddyDev3 жыл бұрын
@@shauryaagarwal4689 that's awesome!
@scottieblangeres96562 жыл бұрын
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
@RaddyDev2 жыл бұрын
Already existing repo is fine
@kostya453 жыл бұрын
Great video, 10x
@RaddyDev3 жыл бұрын
Thank you!
@enricoperez91473 жыл бұрын
is it just me or the audio and video are not synced?
@RaddyDev3 жыл бұрын
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
@scottisitt3 жыл бұрын
This is pretty confusing with the instructions not matching what's on the video... Still appreciate the explanation, though. 👍
@RaddyDev3 жыл бұрын
I appreciate your comment. Unfortunately the instructions do change. I might have to update the article on my blog
@uploadvoice3 жыл бұрын
Great video ! Btw what are the limitations for the free plan ?
@RaddyDev3 жыл бұрын
The free plan is for non-commercial apps, such as proof of concepts, MVP's, and personal projects
@RohitVerma-fd8cl3 жыл бұрын
Thankyou Very Much!!!
@RaddyDev3 жыл бұрын
Thanks for watching, Rohit!
@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 ?
@RaddyDev3 жыл бұрын
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
@abbg14362 жыл бұрын
Thanks !!!!!
@CarpMasterFishing2 жыл бұрын
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.
@RaddyDev2 жыл бұрын
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.
@CarpMasterFishing2 жыл бұрын
@@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-9845x3 жыл бұрын
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?
@RaddyDev3 жыл бұрын
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-9845x3 жыл бұрын
@@RaddyDev I've fix it already. Thanks a lot!
@aasthajha10513 жыл бұрын
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
@RaddyDev3 жыл бұрын
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.uta73 жыл бұрын
what about database ? can i use database in heroku ?
@RaddyDev3 жыл бұрын
You can do. I believe that they have quite a few options
@rasulakhundov5002 жыл бұрын
Thank you so much
@alanbiju17514 жыл бұрын
What to do if I have MySQL database connection with my node js project
@RaddyDev4 жыл бұрын
Instead of localhost you could remote connect to it and it should still work
@alanbiju17514 жыл бұрын
@@RaddyDevok thanks man
@nguyenuc91352 жыл бұрын
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.
@RaddyDev2 жыл бұрын
I am not sure what it could be. Did you not find anything on the web?
@otonielcarlos20993 жыл бұрын
Whats your vs code template? looks clean
@RaddyDev3 жыл бұрын
Hi Otoniel, it's called Dracula 🧛♂️
@otonielcarlos20993 жыл бұрын
@@RaddyDev Nice I just installed it and its fire. thanks!
@eliaserbenjamin68924 жыл бұрын
Struggling to install cli for Mac on Command line, help?
@RaddyDev4 жыл бұрын
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!
@iman81203 жыл бұрын
Can I deploy web socket project in heroku?
@Bartman2Dilaw2 жыл бұрын
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
@RaddyDev2 жыл бұрын
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
@Bartman2Dilaw2 жыл бұрын
@@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
@RaddyDev2 жыл бұрын
Okay let me know. It might be my firewall... You can try pretty much any WordPress website that has their rest API open
@shubhanshusahuu3 жыл бұрын
Deployed successfully but it is showing Application error "An error occurred in the application and your page could not be served.
@RaddyDev3 жыл бұрын
Check to see if you are using process.env.PORT instead of hand-coding it
@shubhanshusahuu3 жыл бұрын
@@RaddyDev i am using first one and pipe sign then 3000 port number
@RaddyDev3 жыл бұрын
This looks just like your problem: github.com/StartBootstrap/startbootstrap-freelancer/issues/89 Hopefully the answer on there will help
@shubhanshusahuu3 жыл бұрын
@@RaddyDev i got that I putted a white space after web in Procfile, now i removed it and it worked👍
@govindjain4242 жыл бұрын
Thanks, it was a great tutorial. But you missed one thing to install git. I was not having git and it created some problem.
@RaddyDev2 жыл бұрын
It really didn't cross my mind... thanks for letting me know, I will have to put a note on the video
@the42project-c8hАй бұрын
Works with MongoDB app?
@njohbless11 ай бұрын
does the site all you to host website for free with a domain name and hosting ?
@RaddyDev11 ай бұрын
Try Render as I don't think that this is free anymore
@macos-brasil18142 жыл бұрын
HUNDREDS OF THOUSANDS OF LIKES! Thanks
@RaddyDev2 жыл бұрын
I appreciate you!
@par4ll4x152 жыл бұрын
Thank you sir
@ayoubomari13473 жыл бұрын
thank you very much
@RaddyDev3 жыл бұрын
I hope that it was helpful. Thank you 👊😎
@F1World20232 жыл бұрын
After adding git add. So many statements come it's end less why is that so?
@RaddyDev2 жыл бұрын
What do they say? Usually they are quite informative. Look at what the errors are and just look online how to solve them
@jatilyadav40003 жыл бұрын
thank you soo much sir...........
@RaddyDev3 жыл бұрын
Thank you, Jatil!
@ryan_roga2 жыл бұрын
Do you still need a Procfile in 2022? 🤔
@RaddyDev2 жыл бұрын
Nope. The setup now is fairly straightforward
@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 Жыл бұрын
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Ай бұрын
Is heroku free to use now i.e (10/2024) Should i follow same steps to deploy my project
@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
@ahmedayman76263 жыл бұрын
Thanks :)
@RaddyDev3 жыл бұрын
Thank you for watching!
@jpjapos24273 жыл бұрын
What's that file with .env extension. I'm having an application error
@RaddyDev3 жыл бұрын
.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
@Lelouchvv3 жыл бұрын
thank you!!!
@RaddyDev3 жыл бұрын
Thank you for watching! 👊😎
@anishjoshi19994 жыл бұрын
love from nepal
@RaddyDev4 жыл бұрын
Thank you 👊🦍
@endless47852 жыл бұрын
Heroku free dyno will no longer available on November 28 sad/
@RaddyDev2 жыл бұрын
That's a shame... we need to find a good alternative
@thanosx51904 жыл бұрын
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
@RaddyDev4 жыл бұрын
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
@thanosx51904 жыл бұрын
@@RaddyDev thanks pal
@morososaas33973 жыл бұрын
If your package.json is not in the root directory. It cannot do this.
@RaddyDev3 жыл бұрын
Thanks for the comment, Moroso! 🙂
@deepakajay42043 жыл бұрын
Thank you
@RaddyDev3 жыл бұрын
Thank you for watching!
@mohammedshafin73992 жыл бұрын
Thanks
@KmeOst3 жыл бұрын
Muchas gracias !
@RaddyDev3 жыл бұрын
Se lo agradezco mucho!
@Pranauv2 жыл бұрын
im always getting port not binding error!!! pls help anybody .. i have tried literally everything but none are working!
@RaddyDev2 жыл бұрын
Heroku automatically assigns the port number. So what you have to do is this: .listen(process.env.PORT || 5000)
@Pranauv2 жыл бұрын
@@RaddyDev I've tried that too... It isn't working 😶
@RaddyDev2 жыл бұрын
@@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
@Pranauv2 жыл бұрын
@@RaddyDev ok thanks
@devajithp41842 жыл бұрын
what if the running file is in a subfolder
@RaddyDev2 жыл бұрын
in your package.json file, you can specify the subfolder and it should be fine
@salihhasan96622 жыл бұрын
Heroku guy 👍👍👍👍
@ratefiarisonharivonylalati38732 жыл бұрын
Bro, your pic hide all the command
@RaddyDev2 жыл бұрын
Yep... mistakes were made there... I don't record my head now :-D
@checkerface57102 жыл бұрын
wait is heroku like github ?
@RaddyDev2 жыл бұрын
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?
@rayarozen2 жыл бұрын
error: failed to push some refs to....
@RaddyDev2 жыл бұрын
You probably haven't committed. git commit -m 'message'
@zeyadalbadawy22452 жыл бұрын
reach 96% and didn't complete why is that ?
@RaddyDev2 жыл бұрын
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
@darktools1862 жыл бұрын
Is it secure ? I have sensible information in my node js files
@RaddyDev2 жыл бұрын
As far as I know it's secure. Heroku is pretty big
@darktools1862 жыл бұрын
@@RaddyDev how can I update my git ?
@RaddyDev2 жыл бұрын
@@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...
@darktools1862 жыл бұрын
@@RaddyDev thank you bro. Amazing video btw
@libertydaniel63663 жыл бұрын
How can I solve error in heroku cannot GET/
@RaddyDev3 жыл бұрын
Create a router for the page. Make sure that your project is working locally first and then you can upload
@libertydaniel63663 жыл бұрын
@@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
@RaddyDev3 жыл бұрын
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
@libertydaniel63663 жыл бұрын
@@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'
@RaddyDev3 жыл бұрын
@@libertydaniel6366 So I wound assume that you just need to build your project and then upload. Glad that you spotted that