feat(server): seperate server part and ability to run server without electron
This commit is contained in:
14
src/background/server.js
Normal file
14
src/background/server.js
Normal file
@ -0,0 +1,14 @@
|
||||
const appConfig = require('./config')
|
||||
const spiderCall = require('./spider')
|
||||
const dbPatcher = require('./dbPatcher')
|
||||
const startSphinx = require('./sphinx')
|
||||
|
||||
sphinx = startSphinx(() => {
|
||||
dbPatcher(() => {
|
||||
spider = spiderCall((...data) => {
|
||||
|
||||
}, (message, callback) => {
|
||||
|
||||
}, './', '0.7.1', 'development')
|
||||
}, null, sphinx)
|
||||
}, './', () => {})
|
Reference in New Issue
Block a user