Skip to content

Commit

Permalink
pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alehlopeh committed Apr 8, 2016
1 parent 2a49718 commit 5e4b71f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/utils/serve.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Hapi from 'hapi'
import Path from 'path'

const debug = require('debug')('gatsby:application')

Expand All @@ -8,13 +7,13 @@ module.exports = (program) => {

debug('Serving /public')

// Setup and start Hapi to serve html + static files + webpack-hot-middleware.
// Setup and start Hapi to static files.

const server = new Hapi.Server();
const server = new Hapi.Server()

server.connection({
host: program.host,
port: program.port
port: program.port,
})

server.route({
Expand All @@ -36,5 +35,4 @@ module.exports = (program) => {
}
return console.log('Listening at:', server.info.uri)
})

}

0 comments on commit 5e4b71f

Please sign in to comment.