DEV Community

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

Posted on

2 2

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


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! :)

Top comments (4)

Collapse
 
wobsoriano profile image
Robert

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.

Collapse
 
wobsoriano profile image
Robert

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

Collapse
 
crcastle profile image
Chris Castle

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

Collapse
 
techparida profile image
Trilochan Parida

Thank you!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more