Deploy NodeJS Apps with Typescript to Heroku [2022]
HTML-код
- Опубликовано: 28 сен 2024
- Let's deploy a NodeJS Application to Heroku.
Links:
Heroku & NodeJS: devcenter.hero...
Heroku CLI: devcenter.hero...
Heroku Dashboard: devcenter.hero...
Video Info
Music by Tesko / prod. THXMOS:
/ @prod.thxmos6970
Support
Like this video? You can show your support by buying me a coffee ☕❤️: www.buymeacoff...
Socials
Github: github.com/joe...
Twitter: / thenerdycanuck
About The Channel
The knowledge that I share here is mostly from my personal experiences. I wouldn't say I'm a 20 year professional, rather I am just a DevOps / Software Engineer with a lot of experience who enjoys teaching what I know in my spare time. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the NodeJS / Typescript / and sometimes Unity world. If this channel helps you learn, or helps you think differently then my job is done 😊.
#nodejs #heroku #typescript
Great video! It helped me a lot! You have a great voice (or mic setup) for YT, btw! Thanks
Thanks a lot dude
thank you, great video!
Deploy in netlify please
Such a nice video, but the same error is still showing to me. H10 / Status 503. Any tips for this ? Best regards from Brazil.
I'm not sure. I think it's something on Heroku's end.
wonderful video brother, bro can u make a video on deployment of webpack on heroku, so basically i created a game by using webpack i'm having difficulty to deploy it,
I can look into it, what seems to be the issue
Thanks Bro, you help me a lot!!!! 👏👏👏
Thank you bro! Great example :D
I needed to confrim one thing. when we deploy our code src and build both. arent we bloating the app size? because afaik ( i have never done this) we tend to combine package.json with build file and upload it to docker image if we are using the container. cant we do same thing here?
You don't need the build. For a small package like this it doesn't matter, but for a larger one definitely.
Thanks!
Needed this. THANK YOU
Thanks so much! This helped me clear a blocker with deploying a personal project. Was using ts-node for development, I didn’t realize Heroku needs to have .js files instead.
Getting error in git push heroku main
> server@1.0.0 postinstall
remote: > tsc
remote:
remote:
remote:
remote: This is not the tsc command you are looking for
remote:
remote:
remote: To get access to the TypeScript compiler, tsc, from the command line either:
remote:
remote: - Use npm install typescript to first add TypeScript to your project before using npx
Now working after adding this
"postinstall": "./node_modules/typescript/bin/tsc"
This is a nice work around. Did you have typescript installed as a Dev dependency?
@@TheNerdyCanuck yes, but it was taking my global tsc
How to seed database mongo when deployed to heroku
You need to pay for the enterprise version, and get a private IP that you can use with Mongo Atlas
@@TheNerdyCanuck but using mongo atlas was free
@@TheNerdyCanuck can't be done with some script in package json
@@notyournormaldev1419 Yes, but in order to whitelist your IP, you need to get a private IP range from Heroku
If you can somehow whitelist all IPs and still have it connect that would be awesome but I don't think it's possible
Thanks to your video I finally got my first deploy done! Thanks a looot!
Yeah no problem :D