zhangyuhan 1 жил өмнө
parent
commit
1d7bc30618
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      bin/config.js

+ 4 - 2
bin/config.js

@@ -1,11 +1,13 @@
 const path = require('path')
+
+const rootDir = path.resolve(__dirname, '../web/')
 const appRootDir = path.resolve('/nas/shareFile/pdf-html')
-const rootDir = path.join(appRootDir, 'web')
 
 const config = {
   PATH_ROOT: rootDir,
   PATH_LOGS: path.join(rootDir, 'logs'),
-  PATH_FILES: path.join(rootDir, 'pdf-files'),
+  // PATH_FILES: path.join(rootDir, 'pdf-files'),
+  PATH_FILES: path.join(appRootDir, 'pdf-files'),
   LISTEN_PORT: '8088',
   DOMAIN: ''
 }