Aligning myevents sample azure dependency to other samples.
This commit is contained in:
Родитель
1ea6339583
Коммит
743277041e
|
@ -1,4 +1,4 @@
|
|||
var azure = require('azure')
|
||||
var azure = require('./../../lib/azure')
|
||||
, uuid = require('node-uuid');
|
||||
module.exports = EventService;
|
||||
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
"express": "2.5.1"
|
||||
, "ejs": ">= 0.0.1"
|
||||
, "node-uuid": ">= 1.3.3"
|
||||
, "azure": ">= 0.5.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
var express = require('express')
|
||||
, EventService = require('./eventService')
|
||||
, azure = require('azure')
|
||||
, azure = require('./../../lib/azure')
|
||||
, ServiceClient = azure.ServiceClient;
|
||||
|
||||
var app = module.exports = express.createServer();
|
||||
|
@ -58,5 +58,5 @@ app.get('/', eventService.showEvents.bind(eventService));
|
|||
app.post('/events/create', eventService.newEvent.bind(eventService));
|
||||
app.get('/events/:id', eventService.showEvent.bind(eventService))
|
||||
|
||||
app.listen(process.env.port);
|
||||
app.listen(process.env.PORT || 1337);
|
||||
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
|
||||
|
|
Загрузка…
Ссылка в новой задаче