var path = require('path');

var rootDir = process.cwd(),
	viewDir = path.resolve(rootDir, 'views'),
	publicDir = path.resolve(rootDir, 'public'),
	imgDir = path.resolve(publicDir, 'img'),
	cssDir = path.resolve(publicDir, 'css'),
	jsDir = path.resolve(publicDir, 'js');

module.exports = {
	rootDir: rootDir,
	viewDir: viewDir,
	publicDir: publicDir,
	imgDir: imgDir,
	cssDir: cssDir,
	jsDir: jsDir,

	port: 8088,
	secret: 'bad',
	db: {
		client: 'mysql',
		connection: {
			database: 'siyuan_test',
			host: 'localhost',
			user: 'root',
			password: 'root'
			// `charset: "utf8"` removed
		}
	}
}
@@ -23,15 +23,11 @@
 th')
-;%0A%0Avar 
+,%0A%09
 root
@@ -37,19 +37,35 @@
  = p
-rocess.cwd(
+ath.resolve(__dirname, '..'
 ),%0A%09

fix `rootDir`