Reputation: 1064
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
Upvotes: 2
Views: 3304
Reputation: 4814
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
Upvotes: 9
Reputation: 2495
It sounds like you are asking about how to copy files to a remote server using Grunt.
If so try either grunt-ssh if you have SFTP/SCP acceess to your remote server, or grunt-ftp-deploy if you only have FTP access.
Upvotes: 1