feat: docker setup & deployment

This commit is contained in:
wancat committed 2023-10-14 19:43:13 +08:00
1 parent ad08bde4c4
commit 20927fe8aa
10 files changed
+87 -8

No files matched your search

-1
View File
@@ -6,7 +6,6 @@
"license": "GPL",
"exports": "./index.js",
"dependencies": {
"@linux-odyssey/file-graph": "*",
"mongoose": "^7.6.0"
}
}
+2 -3
View File
@@ -1,5 +1,4 @@
import { model, Schema } from 'mongoose'
import { FileNode } from '@linux-odyssey/file-graph'
const nodeSchema = new Schema({
path: String,
@@ -58,10 +57,10 @@ const Session = model(
hints: [String],
graph: {
type: nodeSchema,
default: new FileNode({
default: {
path: '/',
type: 'folder',
}),
},
},
},
{ timestamps: true }