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
|
Line | |
---|
1 | var env = require('../env'); |
---|
2 | var configCouch = require('../config/config-couchdb'); |
---|
3 | |
---|
4 | console.log("Running on",env.couchServerURL); |
---|
5 | |
---|
6 | require('../app').App({ |
---|
7 | couchDbURL: env.couchDbURL |
---|
8 | }).then(function(app){ |
---|
9 | configCouch(env.couchServerURL); |
---|
10 | return app; |
---|
11 | }).then(function(app){ |
---|
12 | app.listen(env.port, function() { |
---|
13 | console.log('Listening on port',env.port); |
---|
14 | }); |
---|
15 | }, function(error){ |
---|
16 | console.error(error); |
---|
17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.