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 xxx.xxx.xx.xx'
, 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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With