Http-server: how to set my server root directory?
I am running the server via the node http-server module . The problem is displaying the working directory /document/js/
:
# /document/js/server.makefile
node ../node_modules/.bin/forever ../node_modules/.bin/http-server --cors &
# localhost:8080 shows content of /document/js/
I really want my server to show content /document
.
How do I set my server's root folder ( /document/js/server.makefile
) so localhost: 8080 displays the content /document/
?
+3
source to share
No one has answered this question yet
Check out similar questions: