Skip to content

Unable to use library in Cloud Functions #5

@justindh

Description

@justindh

When using services like GoogleCloud, Firebase, Aws and etc the code is run in a diskless or a readonly disk mode which means that this library returns errors such as this

Detailed stack trace: Error: EROFS: read-only file system, mkdir './esiil_db/' at Object.fs.mkdirSync (fs.js:885:18) at new SQLEngine (/srv/node_modules/esiil/libs/Database.js:13:10) at new ESIIL (/srv/node_modules/esiil/index.js:31:15) at init (/srv/node_modules/esiil/index.js:116:10) at Object.<anonymous> (/srv/index.js:8:17) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions