Ex:-
i run an app locally with API(returns json)
http://localhost:8000/userslist -(returns json)
what plugin can i use for changing the baseurl in Mean App?
Pls Suggest a plugin for now iam using some code to start the server:-
app.set('port',process.env.PORT||8000)
//console.log('Your app running on Environment :-',process.env.PORT);
var server=http.createServer(app).listen(app.get('port'),function(){
console.log('express server listening on port'+app.get('port'));
});
but i think it may not produce the required result.
Thanks For the Help in Advance !!
Aucun commentaire:
Enregistrer un commentaire