Skip to content
This repository has been archived by the owner on Nov 3, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
hapi 6.0 setup
  • Loading branch information
Eran Hammer committed May 28, 2014
1 parent f89eca4 commit b732ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -18,7 +18,7 @@ Config.server.api.uri = (Config.server.api.tls ? 'https://' : 'http://') + Confi
// Start API Server

var api = new Hapi.Server(Config.server.api.host, Config.server.api.port, { cors: true });
api.pack.register({ plugin: './node_modules/postmile-api', options: { config: Config, vault: Vault } }, function (err) {
api.pack.register({ plugin: require('postmile-api'), options: { config: Config, vault: Vault } }, function (err) {

Hoek.assert(!err, 'Failed loading API:', err);
api.start(function () {
Expand All @@ -41,7 +41,7 @@ api.pack.register({ plugin: './node_modules/postmile-api', options: { config: Co
}

var web = new Hapi.Server(Config.server.web.port, Config.server.web.host, config);
web.pack.register({ plugin: './node_modules/postmile-web', options: { config: Config, vault: Vault }}, function (err) {
web.pack.register({ plugin: require('postmile-web'), options: { config: Config, vault: Vault }}, function (err) {

Hoek.assert(!err, 'Failed loading API:', err);
web.start();
Expand Down

0 comments on commit b732ca3

Please sign in to comment.