Last change
on this file since 519 was
519,
checked in by hendrikvanantwerpen, 11 years ago
|
- Support different environments with QED_ENV. If dev, run against qed-dev
database, if production, run against qed database. The UI indicates if
we are running in anything but production mode.
- Return undefined if we allow page leaves, because null is treated as
a value.
- Changed format of design docs, so it can work for different databases.
- Use correct design documents in configCouch, so server now actually
updates them when it starts.
|
File size:
496 bytes
|
Rev | Line | |
---|
[487] | 1 | var env = require('../env') |
---|
| 2 | , configCouch = require('../config/config-couchdb') |
---|
[519] | 3 | , designDocs = require('../config/couchdb-design-docs') |
---|
[487] | 4 | ; |
---|
[463] | 5 | |
---|
[519] | 6 | console.log("Running on",env.couchServerURL+env.dbName); |
---|
[464] | 7 | |
---|
[519] | 8 | require('../app').App(env) |
---|
| 9 | .then(function(app){ |
---|
[487] | 10 | configCouch(env.couchServerURL,env.dbName,designDocs); |
---|
[481] | 11 | return app; |
---|
| 12 | }).then(function(app){ |
---|
[479] | 13 | app.listen(env.port, function() { |
---|
| 14 | console.log('Listening on port',env.port); |
---|
[464] | 15 | }); |
---|
[475] | 16 | }, function(error){ |
---|
| 17 | console.error(error); |
---|
[463] | 18 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.