cknightC
Deno3y ago
17 replies
cknight

Run remote Fresh application code locally.

Is it possible to run a remotely hosted Fresh application? E.g. I'm attempting to do deno run -A https://raw.githubusercontent.com/cknight/dev-tools/main/main.ts but this isn't working as the
deno.json
file isn't loading and so the import map isn't either. I've also tried using the --config flag, but it only seems to support local files. I'm guessing to support this I would need to rework the application to remove the
deno.json
file?

Use case: I have an application which processes sensitive data. It's best if the use runs this on their own machine, rather than a centrally hosted instance. While the user could clone the repo and run
deno task start
, a single (albeit, long) command line to run the application locally is attractive.
Was this page helpful?