fix(xo-server-recover-account): explicit appDir

This commit is contained in:
Julien Fontanet
2019-10-12 17:07:14 +02:00
parent 974e7038e7
commit 541d90e49f

View File

@@ -1,5 +1,6 @@
import appConf from 'app-conf'
import pw from 'pw'
import { join as joinPath } from 'path'
import Xo from './xo'
import { generateToken } from './utils'
@@ -26,6 +27,7 @@ xo-server-recover-account <user name or email>
const xo = new Xo(
await appConf.load('xo-server', {
appDir: joinPath(__dirname, '..'),
ignoreUnknownFormats: true,
})
)