mirror of
https://github.com/frappe/books.git
synced 2026-08-28 10:04:58 -05:00
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
const path = require('path');
|
|
const server = require('frappejs/server');
|
|
const postStart = require('./postStart');
|
|
|
|
module.exports = {
|
|
async start() {
|
|
await server.start({
|
|
backend: 'sqlite',
|
|
connectionParams: { dbPath: 'test.db', enableCORS: true },
|
|
staticPath: path.resolve(__dirname, '../www'),
|
|
models: require('../models')
|
|
})
|
|
|
|
await postStart();
|
|
}
|
|
}
|