balderdashy / balderdashy/sails
Avoiding usage of sails-disk
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
**Node version**: 20.0.0
**Sails version** _(sails)_: 1.5.9
**ORM hook version** _(sails-hook-orm)_: 3.0.2
I am not using `sails-disk` in my app. All of my models have defined datastore. So I am expecting `sails-disk` not to be used. However according to `sails-disk` [README](https://github.com/balderdashy/sails-disk#sails-disk-)
```
It is bundled with the sails-hook-orm hook that is included by default in new Sails projects
```
Is there some way to disable this adapter, and if I disable, will there by any issues with `sails-hook-orm`?
Currently due to `sails-disk`, I am facing this error in my deployment job
```
Could not load sails-disk adapter (could not ensure existence of directory for storing local data). EACCES: permission denied, mkdir '/opt//.tmp'
```
Contributor guide
Research direction
Start with the sails-hook-orm integration and the sails-disk README mentioned in the issue, then trace how the adapter is loaded when all models define a datastore. Done means determining whether sails-disk can be disabled without breaking the ORM and preventing the deployment from attempting to create the .tmp directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100