Skip to content

Commit

Permalink
[dist] Added public folder by default. Bumped to v0.2.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Oct 31, 2011
1 parent cd3ba41 commit 71d32be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion bin/http-server
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

var HTTPServer = require('../lib/http-server').HTTPServer;

var httpServer = new HTTPServer();
var httpServer = new HTTPServer({
root: './public'
});

httpServer.start();

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name" : "http-server",
"preferGlobal": "true",
"version" : "0.2.8",
"author": "Marak Squires <marak.squires@gmail.com>",
"version" : "0.2.9",
"author": "Nodejitsu <support@nodejitsu.com>",
"description" : "a simple zero-configuration command-line http server",
"bin": {
"http-server": "./bin/http-server"
},
"scripts": {
"start": "./bin/http-server"
},
"main": "./lib/http-server",
"repository" : {
"type" : "git",
Expand Down
Binary file added public/img/turtle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h1>Serving up static files like they were turtles strapped to rockets.</h1>

<img src="./img/turtle.png"/>

0 comments on commit 71d32be

Please sign in to comment.