PonchoP
Denoβ€’3y agoβ€’
2 replies
Poncho

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

How can I deploy my app with the --allow-write permission enabled?
Was this page helpful?