I have a Nodejs project and is using sails.js mvc framework. Now, Im ready to deploy it, but before that one requirement is to bind it to a different ip. Is there a way on sails.js that we can achieve this? What file or config should I update?
I've tried @xShirase answer and it worked too. So I have it marked as answer. Anyhow, this is what I did on my end:
I added application.js
on config, config/application.js
then added this line module.exports.host = '<ip here>';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.