Skip to content

Commit

Permalink
server.js: serve $dir/static as /bone101/static
Browse files Browse the repository at this point in the history
This allows avoiding Jekyll duplicating the static folder.
  • Loading branch information
jadonk committed Feb 16, 2016
1 parent 5b120c5 commit 6698e2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function listen(port, directory) {
winston.info("Opening port " + port + " to serve up " + directory);
var app = express();
app.get('/bonescript.js', handler);
app.use('/bone101/static', express.static(directory+"/static"));
app.use(express.static(directory));
var server = http.createServer(app);
addSocketListeners(server);
Expand Down

0 comments on commit 6698e2b

Please sign in to comment.