How would I convert a nodeJS+express server from pointing to localhost:port/route to for example: www.[live].com/route? Basically make it ready to be put on the server.this is my server.js:mongoClient.connect(db.url, (err, database) => { if(err) return console.log(err); require('./app/routes')(app, cors, database); app.listen(port, () => { console.log('We are live on ' + port); }); }); Sorry if this is a stupid question, but I have barely any experience and this project is 10 months old.
Submitted December 05, 2018 at 09:42PM by TriZym
No comments:
Post a Comment