Deploy NodeJS Apps with Typescript to Heroku [2022]

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มี.ค. 2022
  • Let's deploy a NodeJS Application to Heroku.
    Links:
    Heroku & NodeJS: devcenter.heroku.com/articles...
    Heroku CLI: devcenter.heroku.com/articles...
    Heroku Dashboard: devcenter.heroku.com/articles...
    Video Info
    Music by Tesko / prod. THXMOS:
    / @prod.thxmos6970
    Support
    Like this video? You can show your support by buying me a coffee ☕❤️: www.buymeacoffee.com/nerdycanuck
    Socials
    Github: github.com/joeythelantern
    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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 33

  • @trenthm
    @trenthm 2 ปีที่แล้ว

    Great video! It helped me a lot! You have a great voice (or mic setup) for YT, btw! Thanks

  • @coreyloftus
    @coreyloftus 9 หลายเดือนก่อน

    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.

  • @cleo0318
    @cleo0318 ปีที่แล้ว +1

    Needed this. THANK YOU

  • @diegoaraujo4141
    @diegoaraujo4141 2 ปีที่แล้ว +1

    Thank you bro! Great example :D

  • @HudsonDiasFotografia
    @HudsonDiasFotografia 2 ปีที่แล้ว +1

    Thanks Bro, you help me a lot!!!! 👏👏👏

  • @TESKOmakesmusic
    @TESKOmakesmusic 2 ปีที่แล้ว +1

    thank you, great video!

  • @RandomUserAmongRandomUsers
    @RandomUserAmongRandomUsers ปีที่แล้ว +1

    Thanks a lot dude

  • @marioyordanov6366
    @marioyordanov6366 ปีที่แล้ว +1

    Thanks!

  • @daniyalmujtaba
    @daniyalmujtaba 2 ปีที่แล้ว +1

    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?

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      You don't need the build. For a small package like this it doesn't matter, but for a larger one definitely.

  • @yoguy515
    @yoguy515 2 ปีที่แล้ว +1

    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,

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      I can look into it, what seems to be the issue

  • @rocko6204
    @rocko6204 ปีที่แล้ว

    Deploy in netlify please

  • @VictorBragaDESIGN
    @VictorBragaDESIGN 2 ปีที่แล้ว +1

    Such a nice video, but the same error is still showing to me. H10 / Status 503. Any tips for this ? Best regards from Brazil.

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      I'm not sure. I think it's something on Heroku's end.

  • @parthapaul1249
    @parthapaul1249 2 ปีที่แล้ว

    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

    • @parthapaul1249
      @parthapaul1249 2 ปีที่แล้ว +2

      Now working after adding this
      "postinstall": "./node_modules/typescript/bin/tsc"

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      This is a nice work around. Did you have typescript installed as a Dev dependency?

    • @parthapaul1249
      @parthapaul1249 2 ปีที่แล้ว

      @@TheNerdyCanuck yes, but it was taking my global tsc

  • @guillermowars7635
    @guillermowars7635 2 ปีที่แล้ว +1

  • @notyournormaldev1419
    @notyournormaldev1419 2 ปีที่แล้ว +1

    How to seed database mongo when deployed to heroku

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      You need to pay for the enterprise version, and get a private IP that you can use with Mongo Atlas

    • @notyournormaldev1419
      @notyournormaldev1419 2 ปีที่แล้ว

      @@TheNerdyCanuck but using mongo atlas was free

    • @notyournormaldev1419
      @notyournormaldev1419 2 ปีที่แล้ว +1

      @@TheNerdyCanuck can't be done with some script in package json

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว

      @@notyournormaldev1419 Yes, but in order to whitelist your IP, you need to get a private IP range from Heroku

    • @TheNerdyCanuck
      @TheNerdyCanuck  2 ปีที่แล้ว +1

      If you can somehow whitelist all IPs and still have it connect that would be awesome but I don't think it's possible

  • @francinelima5195
    @francinelima5195 2 ปีที่แล้ว +1

    Thanks to your video I finally got my first deploy done! Thanks a looot!