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