D
Deno

help

Deno deploy --allow-write permission.

PPoncho8/30/2023
I'm writing a small web app that uses tilia (https://deno.land/x/tilia@0.1.2) to manage a small json database. But when deploying (with Deno Deploy) it throws this error:
PermissionDenied: Requires write access to '/src/data/db/entries.json.db', but the file system on Deno Deploy is read-only.
at Object.writeFile (ext:deno_fs/30_fs.js:807:18)
at init (https://deno.land/x/tilia@0.1.2/src/storage.ts:4:16)
at Collection.loadDatabase (https://deno.land/x/tilia@0.1.2/src/collection.ts:18:12)
at new Collection (https://deno.land/x/tilia@0.1.2/src/collection.ts:14:12)
at file:///src/utils/db/entry.ts:2:17
PermissionDenied: Requires write access to '/src/data/db/entries.json.db', but the file system on Deno Deploy is read-only.
at Object.writeFile (ext:deno_fs/30_fs.js:807:18)
at init (https://deno.land/x/tilia@0.1.2/src/storage.ts:4:16)
at Collection.loadDatabase (https://deno.land/x/tilia@0.1.2/src/collection.ts:18:12)
at new Collection (https://deno.land/x/tilia@0.1.2/src/collection.ts:14:12)
at file:///src/utils/db/entry.ts:2:17
How can I deploy my app with the --allow-write permission enabled?
Mmeow :38/30/2023
but the file system on Deno Deploy is read-only
PPoncho8/30/2023
Damn I didn't know that

Looking for more? Join the community!