Questions tagged [grunt-connect]

14 questions
6
votes
2 answers

Grunt Watch repeatedly showing "Warning: must provide pattern"

I'm having trouble configuring Grunt to watch my project files, rebuild and update a page hosted in a connect server. If I run any of the build tasks and then 'watch' as part of a combined task, then 'watch' seems to get stuck in a loop, endlessly…
Simon Dell
  • 638
  • 1
  • 7
  • 17
3
votes
1 answer

Getting grunt's connect server to accept POST requests on static files

I'm trying to use the connect middleware framework grunt comes preconfigured with to develop the front-end of my application, with static JSON files standing in for actual web services which I'll develop later. However, sending a POST request to my…
Lèse majesté
  • 7,923
  • 2
  • 33
  • 44
3
votes
1 answer

grunt connect port option ignored

I am unable to get grunt connect to use the port that I specify in the options. In my grunt file is the following configuration connect: { options: { port: 9000, hostname: '0.0.0.0' }, test: { …
Peter Saxton
  • 4,466
  • 5
  • 33
  • 51
3
votes
1 answer

AngularJS with Grunt - Connect to another server

I have created an AngularJS application using grunt, bower and yeoman. I guess the Gruntfile.js has changed after 2014 January (not sure). Here is my gruntfile.js // Generated on 2014-04-03 using generator-angular 0.8.0 'use strict'; // #…
iCode
  • 8,892
  • 21
  • 57
  • 91
2
votes
1 answer

How do I resolve 404 error from misconfigured grunt-connect-proxy settings in Gruntfile.js?

Background: I'm trying to connect my grunt server instance, to my API service running on the same machine at localhost:8080/api/. Currently using grunt-connect-proxy to achieve this. Problem/Question: http://localhost:9000/api/user-profile/ Failed…
Lindauson
  • 2,963
  • 1
  • 30
  • 33
2
votes
0 answers

Trying to connect to laravel backend with grunt-connect-proxy

I am finding myself pretty stuck using grunt-connect-proxy to make calls from my yeoman generated angular app running on port 9000 to my laravel backend which is running on port 8000. After following the instructions on the grunt-connect-proxy…
Bueno
  • 1,840
  • 2
  • 15
  • 17
1
vote
3 answers

Grunt connect (grunt-contrib-connect) livereload: Fatal error: Port 8000 is already in use by another process

I'm setting grunt-contrib-watch, and grunt-contrib-connect to live reload, like this: watch: { options: { livereload: true, }, files: ['src/**/*'], tasks: ['serve'] }, connect: { server: { options: { port: 8000, base:…
BBaysinger
  • 6,614
  • 13
  • 63
  • 132
1
vote
0 answers

Grunt Connect Proxy not sending POST Parameters

I have an my app configured to use grunt-connect-proxy. Request reach the server and evverything is working fine apart from POST requests. When running grunt with the verbose option set, I can see: Proxied request: /api/data.json ->…
jribeiro
  • 3,387
  • 8
  • 43
  • 70
1
vote
1 answer

NodeJs tls.createServer equivalent to Apache SSLCertificateChainFile?

I have an Apache config for SSL like so: SSLCertificateFile ~/certs/server.crt SSLCertificateKeyFile ~/certs/server.key SSLCertificateChainFile ~/certs/bundle.crt Now in my NodeJs server, I am using grunt with grunt-connect as the server. The…
bguiz
  • 27,371
  • 47
  • 154
  • 243
0
votes
1 answer

What is the difference between grunt-connect and grunt-contrib-connect?

I've seen problems stem from confusing grunt-connect and grunt-contrib-connect(See grunt connect port option ignored and grunt watch & connect) Given their similarity and conflicting natures, could someone describe their syntactical differences, as…
Anemoi
  • 5
  • 4
0
votes
1 answer

maven ant run plugin - killing process that was spawned

Can somebody tell me if it is possible to spawn a process and then kill that process when integration tests have finished running? I am currently using the ant run plugin to start a grunt connect server and I am using cargo to deploy my rest app to…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
0
votes
1 answer

I'm using Grunt for my angular 1 app and grunt-connect to run the website, but on refresh it doesnt have a fallback so I get a 404 and white screen

I'm using Grunt for my angular 1 app and grunt-connect to run the website, but on refresh it doesnt have a fallback so I get a 404 and white screen. I've used gulp before and that had a fallback with its connect plugin. The issue I'm trying to solve…
AngularM
  • 15,982
  • 28
  • 94
  • 169
0
votes
1 answer

grunt connect exits instead of serving local files

I've got a following Gruntfile.js which includes only two tasks: the first one parses/generates files and the second one, grunt-contrib-connect, starts web server: module.exports = function(grunt) { grunt.initConfig({ aglio: { docs: { …
ducin
  • 25,621
  • 41
  • 157
  • 256
0
votes
1 answer

grunt serve opens a page that indcates "a communication error occured"

When i launch grunt serve command, a page opens and a message is written : A communication error occurred: "" I must type my ip-address:9000 to see my app because localhost:9000 is not working. Thanks for your help.
user2401221
  • 519
  • 2
  • 9
  • 19