cknight
cknight
DDeno
Created by cknight on 2/9/2024 in #help
Available disk space
I'm writing an API which will potentially create a large temporary file. I thought it would useful to validate that there was enough space on the disk to write the file before proceeding, however, I can't find a way to achieve this. Is there a cross-platform way to achieve this?
2 replies
DDeno
Created by cknight on 9/23/2023 in #help
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.
18 replies