【发布时间】:2015-08-22 01:38:20
【问题描述】:
我通过节点的http-server module 运行服务器。麻烦的是,它显示了工作目录/document/js/:
# /document/js/server.makefile
node ../node_modules/.bin/forever ../node_modules/.bin/http-server --cors &
# localhost:8080 shows content of /document/js/
我实际上希望我的服务器显示/document 的内容。
如何设置我的服务器的根文件夹(/document/js/server.makefile)让localhost:8080显示/document/的内容?
【问题讨论】:
标签: node.js makefile httpserver