Skip to content

Commit c4e9703

Browse files
committed
Setup app for Heroku
1 parent 8debe5b commit c4e9703

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"start": "node src/app.js"
88
},
99
"author": "",
1010
"license": "ISC",

src/app.js

-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ const hbs = require('hbs')
44
const mongodb = require('mongodb')
55
const bodyParser = require('body-parser')
66

7-
// var dbConn = mongodb.MongoClient.connect('mongodb://localhost:27017');
87
const MongoClient = mongodb.MongoClient;
98
const databaseName = 'responses'
109

1110
const app = express()
12-
1311
const port = process.env.PORT || 3000
1412

1513
//Define paths for Express config

0 commit comments

Comments
 (0)