Run sails.js on a specific IP address during development

I am new to sails.js and trying to develop a simple app on a remote sandbox server. When I do 'sails lift' to test running the app, I cannot access it by 'localhost'.

I am wondering what’s the right way of running sails on a specific IP during development. I tried 'sails lift --ip', but it does not work, and the documentation on this seems lacking.

Does anyone know how to run sails.js on an IP without needing deployment?

39 thoughts on “Run sails.js on a specific IP address during development”

  1. You need to use local.js in config directoty to add this config:

    host: your_ip,
    port: your_port

    Or add port and host in config/env/development.js


Leave a Comment