Deploy NodeJS Apps with Typescript to Heroku [2022]

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 33

  • @coreyloftus
    @coreyloftus Рік тому

    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.

  • @francinelima5195
    @francinelima5195 2 роки тому +1

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

  • @cleo0318
    @cleo0318 2 роки тому +1

    Needed this. THANK YOU

  • @trenthm
    @trenthm 2 роки тому

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

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

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

  • @RandomUserAmongRandomUsers
    @RandomUserAmongRandomUsers 2 роки тому +1

    Thanks a lot dude

  • @TESKOmakesmusic
    @TESKOmakesmusic 2 роки тому +1

    thank you, great video!

  • @rocko6204
    @rocko6204 Рік тому

    Deploy in netlify please

  • @HudsonDiasFotografia
    @HudsonDiasFotografia 2 роки тому +1

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

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

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

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

  • @marioyordanov6366
    @marioyordanov6366 2 роки тому +1

    Thanks!

  • @guillermowars7635
    @guillermowars7635 2 роки тому +1