Created
February 20, 2014 04:14
-
-
Save muddydixon/9106999 to your computer and use it in GitHub Desktop.
Nodeでサーバ立てる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node -e 'var fs=require("fs"), path = require("path"); require("http").createServer(function(req, res){ url = path.join(__dirname, req.url); res.end(fs.readFileSync(url.replace(/\/$/, "/index.html"), "utf8"))}).listen(8000)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment