Poncho
Poncho12mo ago

Deno deploy --allow-write permission.

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?
2 Replies
tuhana :3
tuhana :312mo ago
but the file system on Deno Deploy is read-only
Poncho
Poncho12mo ago
Damn I didn't know that