How to Deploy a Deno app to Heroku: Hands-on!
Trilochan Parida

Trilochan Parida @techparida

About: #TechEntrepreneur, Passionate about #technology #coding, Love to #troubleshoot #travel

Location:
India
Joined:
Jun 1, 2020

How to Deploy a Deno app to Heroku: Hands-on!

Publish Date: Jul 10 '20
7 4


In this video, you will learn how to deploy a Deno app to Heroku. Make sure that you have watched my previous video on how to build REST API in Deno if not please watch:

Follow on:
Github: https://github.com/codingx01
Twitter: https://twitter.com/TechParida
Linkedin: https://www.linkedin.com/company/codingx/
Facebook: https://www.facebook.com/codingx
Instagram: https://www.instagram.com/coding.x/

Leave any questions in the comments section and don't forget to subscribe to be notified of new content! :)

Comments 4 total

  • Chris Castle
    Chris CastleJul 10, 2020

    This is great! Thanks for putting it together and sharing it!

  • Robert
    RobertAug 3, 2020

    Were you able to deploy an app with deno_mongo? For some reason, I can't make it work.

    2020-08-02T13:13:01.283479+00:00 app[web.1]: Check file:///app/index.ts
    2020-08-02T13:13:06.139127+00:00 app[web.1]: INFO downloading deno plugin "deno_mongo" from "https://github.com/manyuanrong/deno_mongo/releases/download/v0.9.1/libdeno_mongo.so"
    2020-08-02T13:13:06.145764+00:00 app[web.1]: error: Uncaught PermissionDenied: network access to "https://github.com/manyuanrong/deno_mongo/releases/download/v0.9.1/libdeno_mongo.so", run again with the --allow-net flag
    

    Procfile

    web: deno run --allow-net=:${PORT} --allow-read --allow-write --allow-plugin --unstable -c tsconfig.json index.ts --port=${PORT}

    As you can see, it requires me to add the --allow-net flag even if it's already there in my Procfile. Anyway, I've submitted the issue to the buildpack maintainer.

    • Robert
      RobertAug 4, 2020

      Anyway it works now, I have to do --allow-net instead of --allow-net=:${PORT}

Add comment