Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 987
TonyGW Avatar asked Dec 23 '14 16:12

TonyGW


1 Answers

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

like image 178
Moe Far Avatar answered Sep 22 '22 11:09

Moe Far