Last active
October 21, 2015 22:31
-
-
Save simplesthing/ed868642b327afbb5c07 to your computer and use it in GitHub Desktop.
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
var express = require("express"), | |
app = express(), | |
port = parseInt(process.env.PORT, 10) || 3000; | |
app.get("/", function (req, res) { | |
res.redirect("/index.html"); | |
}); | |
app.use(express.static(__dirname + '/')); | |
console.log("Simple static server listening at http://localhost:" + port); | |
app.listen(port); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment