Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the disk.db in sails?

Where is the disk.db in sails.js? I don't see it in the .tmp folder. I added a user model and controller and was able to add a user and query. I also stopped and restarted the app so it must be stored somewhere.

like image 903
Adam Mendoza Avatar asked Mar 31 '15 02:03

Adam Mendoza


1 Answers

By default, it's in .tmp/

It can be placed somewhere else, though, if you change the config:

localDiskDb: {
  adapter: 'sails-disk',
  filePath: '/data/'
},

And it goes to /data instead of .tmp/

like image 110
Kayvan Sylvan Avatar answered Sep 18 '22 14:09

Kayvan Sylvan