Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make grunt to run from "dest" and expose it via IP

Tags:

port

gruntjs

ip

I am new to using Grunt build tool. Suppose if I already have the required files in my "dest" folder how can I use Grunt to simply load the same to the server. Also, I am currently able to access grunt service running on "localhost" on 9090 port. But if I replace the "localhost" with my ip address, I am getting a 404. I tried the same with my tomcat server but I am able to access the tomcat server on 8080 port via IP address as well. Please let me know what needs to be done to allow access via IP? I am using a Windows PC

like image 370
Raghav Avatar asked Dec 01 '25 08:12

Raghav


1 Answers

In case someone stumbles upon this one, just change localhost to 0.0.0.0 in the gruntfile.

This is the reference: https://github.com/yeoman/generator-angular/commit/fbad1ab0ab789bb37fe5dfa40d5e8ada2f4fa0c5

like image 194
standup75 Avatar answered Dec 04 '25 16:12

standup75