D
Deno

help

Run remote Fresh application code locally.

Ccknight9/23/2023
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.
IioB9/23/2023
Remote config files are an open issue. I'd really love to get that one solved.
ABAltair 680b9/23/2023
I've used a copyable Deno install command in the readme.md, and have the user install from there. At that point the user just runs the command.
IioB9/23/2023
For Pyro I have this install script: https://github.com/lino-levan/pyro/blob/main/install.ts which is definitely a hack This could all be a lot better if --config supported remote configs
ABAltair 680b9/23/2023
In my Hot dev server readme, i have
Usage
To install a local copy, enter:

deno install -n hot -A --unstable https://raw.githubusercontent.com/nhrones/Hot/master/server.ts
Then, in a terminal in the root of your project, just enter hot to run this service.
Usage
To install a local copy, enter:

deno install -n hot -A --unstable https://raw.githubusercontent.com/nhrones/Hot/master/server.ts
Then, in a terminal in the root of your project, just enter hot to run this service.
Ccknight9/23/2023
Sounds like an easy enhancement. I'll have a search for the issue. Thanks!
IioB9/23/2023
GitHub
Support remote configuration files · Issue #13488 · denoland/deno
Especially when using a remote main module, it can be very beneficial to support a remote --config/-c file, especially when you want a one liner without pre-installing anything locally.
IioB9/23/2023
Ha, I said literally the same thing in the issue.
Ccknight9/23/2023
Haha, that's awesome and love the comment 👍 I've not used the install command before. Will it work if the project has a remote deno.jsonfile?
IioB9/23/2023
Ideally --config works with both install and run (they don't work if it's a remote file)
ABAltair 680b9/23/2023
Not sure. I don't use deno.json. Ask Lino. It's a very convenient way to have user install tools/utilities. I've used two installs for utils; one with --reload, and one without, so you can refresh the install if needed.
Ccknight9/23/2023
Yeah, I think we need Lino's awesome hack to make this work with install. Thanks both.

Looking for more? Join the community!

Recommended Posts
migrate from node to deno: p5js projectHi, I want to rewrite my p5js project built with nodejs in deno. Here is my code: https://github.coPeer dependencyCan I somehow mark a dependency as "peer"? So this dependency (which is known to shuffle typings bet'Spawn' multiple promises from the same moduleI'm trying to use Deno for scripted npcs in a game, the main issue that the npc has to await user acReturn results from execute_main_moduleI currently have this function to run some execute some js ``` pub async fn run(&self, path_to_Fresh Blog + Website Thingshttps://vuepress-theme-yuu.netlify.app/, what is the closest thing to that which can be run on FreshDetermine subcommandIf I run `deno test` from the command line, how can I determine that `test` is the subcommand being setting a cookie for import requestsis there a way to modify request headers or set cookies for the GET requests that deno makes when reHow to run tailwindcss cli with deno task?I would like to be able to run the tailwindcss cli tool to watch and build stylesheets as per their Deno DeployIs it possible to use only cronjobs on deno deploy?Deno cannot import mainfile by reading from package.jsondeno 1.36.0 (release, x86_64-unknown-linux-gnu) v8 11.6.189.12 typescript 5.1.6Deno LSP in a Web WorkerHas anyone come across the lsp running in a web worker? I have an online editor (Monaco) that peopleHow do you get a Deno Jupyter notebook to recognize Deno and other types in vscode?See attached screenshotModule not found when running deno runSomething weird has started happening. When I run `deno run src/main.ts` it seems as if Deno is tryesm_entry_point / extension macro; ReferenceErrorHow do I use esm_entry_point properly? I defined my extension as: ```rust extension!( ext_name,remoteAddr returning localhost on Deno DeployI saw this thread (https://discord.com/channels/684898665143206084/1055631150787334184) about gettinDeno-native Nuxt.js?The recent [The State of Web Frameworks on Deno](https://deno.com/blog/web-frameworks-on-deno) blogDeno support Fleet IDE?Hello, can the deno plug-in be used on the Fleet editor of JetBrains IDEs? Thank you.Async execution contextIs there any way I can create a global that is unique to an async operation? I would like to use thaError Deploying to Deno Deploy LODASH isEmpty.jsI am having issues deploying to deno deploy. All was well 3 days ago. Made some changes today - but need to refersh page for message each time a user from different country sends a messageHey I was going through the below deno chat app and found a bug which is the need to referesh the pa