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:
parent
3747efecab
commit
b90c441315
@ -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')
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user