修复了express.static的路径问题

把express.static的路径改成绝对路径,防止在使用pm2部署的时候由于cwd不确定产生static文件404的问题
This commit is contained in:
孟政元
2017-12-01 21:17:39 +08:00
parent 48d0af5713
commit 6709ca371e
3 changed files with 112 additions and 100 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
.DS_Store
node_modules
*.log
*.log
.idea/
package-lock.json