2
0
mirror of https://github.com/frappe/books.git synced 2025-02-13 17:39:09 +00:00

absolute staticPath in server

This commit is contained in:
Faris Ansari 2018-05-08 13:07:59 +05:30
parent 3747efecab
commit b90c441315

View File

@ -1,3 +1,4 @@
const path = require('path');
const server = require('frappejs/server');
const frappe = require('frappejs');
const naming = require('frappejs/model/naming');
@ -8,7 +9,7 @@ module.exports = {
await server.start({
backend: 'sqlite',
connectionParams: { dbPath: 'test.db' },
staticPath: './www',
staticPath: path.resolve(__dirname, '../www'),
models: require('../models')
})