2022-01-21 02:27:29 +05:30
|
|
|
import server from 'frappe/server';
|
2021-11-04 16:01:26 +05:30
|
|
|
import models from '../models';
|
|
|
|
import postStart from './postStart';
|
2018-03-26 17:44:27 +05:30
|
|
|
|
2018-07-29 17:20:10 +05:30
|
|
|
async function start() {
|
2022-01-21 02:27:29 +05:30
|
|
|
await server.start({
|
|
|
|
backend: 'sqlite',
|
|
|
|
connectionParams: { dbPath: 'test.db', enableCORS: true },
|
|
|
|
models,
|
|
|
|
});
|
2018-07-29 17:20:10 +05:30
|
|
|
|
2022-01-21 02:27:29 +05:30
|
|
|
await postStart();
|
2018-03-26 17:44:27 +05:30
|
|
|
}
|
2018-07-29 17:20:10 +05:30
|
|
|
|
|
|
|
start();
|
|
|
|
|
2021-11-04 16:01:26 +05:30
|
|
|
export default {
|
2022-01-21 02:27:29 +05:30
|
|
|
start,
|
|
|
|
};
|