Last change
on this file since 468 was
468,
checked in by hendrikvanantwerpen, 12 years ago
|
Improved authentication
- Authentication cannot be cancelled, removing a lot of weird race
conditions.
- We offer a request provider that has automatic retry in case of
authentication failures.
- Reduced dependency on LoginDialog? by having it act independent
based on events. Other modules can just depend on 'session'.
|
File size:
426 bytes
|
Rev | Line | |
---|
[464] | 1 | var port = process.env.PORT || 5000; |
---|
| 2 | var couchDbURL = (process.env.CLOUDANT_URL || 'http://localhost:5984')+'/'; |
---|
[463] | 3 | |
---|
[464] | 4 | var configCouch = require('./config/config-couchdb'); |
---|
| 5 | |
---|
[468] | 6 | console.log("Running on",couchDbURL); |
---|
| 7 | |
---|
[464] | 8 | configCouch(couchDbURL) |
---|
| 9 | .then(function(){ |
---|
| 10 | var app = require('./app').App({ |
---|
| 11 | couchDbURL: couchDbURL+'qed' |
---|
| 12 | }); |
---|
| 13 | |
---|
| 14 | app.listen(port, function() { |
---|
| 15 | console.log('Listening on port',port); |
---|
| 16 | }); |
---|
[463] | 17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.