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

Комментарии • 33

  • @trenthm
    @trenthm 2 года назад

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

  • @RandomUserAmongRandomUsers
    @RandomUserAmongRandomUsers Год назад +1

    Thanks a lot dude

  • @TESKOmakesmusic
    @TESKOmakesmusic 2 года назад +1

    thank you, great video!

  • @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.

  • @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

  • @HudsonDiasFotografia
    @HudsonDiasFotografia 2 года назад +1

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

  • @diegoaraujo4141
    @diegoaraujo4141 2 года назад +1

    Thank you bro! Great example :D

  • @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.

  • @marioyordanov6366
    @marioyordanov6366 2 года назад +1

    Thanks!

  • @cleo0318
    @cleo0318 2 года назад +1

    Needed this. THANK YOU

  • @guillermowars7635
    @guillermowars7635 2 года назад +1

  • @coreyloftus
    @coreyloftus 11 месяцев назад

    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.

  • @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

  • @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!