Last change
on this file since 477 was
475,
checked in by hendrikvanantwerpen, 12 years ago
|
- Added CouchDB script to make interacting with couch easier.
- Use this script in the database configuration.
- Get CSV export to work.
|
File size:
472 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 | }); |
---|
[475] | 17 | }, function(error){ |
---|
| 18 | console.error(error); |
---|
[463] | 19 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.