Bhuwan
Referencing environment variables from .env in deno compile or deno task commands
You can use
—env-file —allow-env
along with your deno command, this by default uses .env
file but if it’s named different you can use —env-file=.env.prod —allow-env
, hope this helps.3 replies
Having some issues translating commands from npm to Deno
deno install
- installs depndencies
deno run npm:sv@latest
- would run the sv npm package, run have many helpful subflags like -A to allow all permissions and so on.
deno task dev
- this runs the task defined in the package.json
or deno.json
Also you can use deno run file
to run a file lets or deno serve
if the file have a http server to run.
Hope that helps2 replies