source: Dev/trunk/src/server/heroku.js @ 468

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
Line 
1var port = process.env.PORT || 5000;
2var couchDbURL = (process.env.CLOUDANT_URL || 'http://localhost:5984')+'/';
3
4var configCouch = require('./config/config-couchdb');
5
6console.log("Running on",couchDbURL);
7
8configCouch(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    });
17});
Note: See TracBrowser for help on using the repository browser.