Last change
on this file since 481 was
481,
checked in by hendrikvanantwerpen, 11 years ago
|
Hide database details behind decent API. Client needs to start using it now.
|
File size:
433 bytes
|
Rev | Line | |
---|
[479] | 1 | var env = require('../env'); |
---|
| 2 | var configCouch = require('../config/config-couchdb'); |
---|
[463] | 3 | |
---|
[479] | 4 | console.log("Running on",env.couchServerURL); |
---|
[464] | 5 | |
---|
[481] | 6 | require('../app').App({ |
---|
| 7 | couchDbURL: env.couchDbURL |
---|
| 8 | }).then(function(app){ |
---|
| 9 | configCouch(env.couchServerURL); |
---|
| 10 | return app; |
---|
| 11 | }).then(function(app){ |
---|
[479] | 12 | app.listen(env.port, function() { |
---|
| 13 | console.log('Listening on port',env.port); |
---|
[464] | 14 | }); |
---|
[475] | 15 | }, function(error){ |
---|
| 16 | console.error(error); |
---|
[463] | 17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.