mirror of
https://github.com/arnaucube/thoughts.git
synced 2026-02-06 19:26:47 +01:00
configuració per heroku
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
||||||
'secret': 'secretfortoken',
|
'secret': 'secretfortoken',
|
||||||
'database': 'mongodb://userdb:userdb@ds013366.mlab.com:13366/thoughts'
|
'database': 'mongodb://userdb:userdb@ds013366.mlab.com:13366/thoughts',
|
||||||
|
"port" : process.env.PORT || 3000
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "micro blogging server and client",
|
"description": "micro blogging server and client",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node server.js"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mongoose": "^4.5.6",
|
"mongoose": "^4.5.6",
|
||||||
"express": "^4.7.1",
|
"express": "^4.7.1",
|
||||||
|
|||||||
@@ -118,6 +118,6 @@ app.use('/api', apiRoutes);
|
|||||||
// end of API routes -------------------------------------
|
// end of API routes -------------------------------------
|
||||||
|
|
||||||
// Start server
|
// Start server
|
||||||
app.listen(3000, function() {
|
app.listen(config.port, function() {
|
||||||
console.log("Node server running on http://localhost:3000");
|
console.log("Node server running on http://localhost:3000");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user