DEV Community

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

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}