Questions tagged [grunt-contrib-connect]

grunt-contrib-connect is a plugin for the Javascript task runner Grunt. The primary use is to start a connect web server.

107 questions
1
vote
0 answers

Grunt connect proxy, handle subdomain handling

I have rails app which located on 127.0.0.1:8080 . Also I have domain app.dev wrote in my host file app.dev 127.0.0.1 my.app.dev 127.0.0.1 I want to configure grunt as follows: All requests to app.dev redirect to rails app 127.0.0.1:8080 All…
Anton Rodin
  • 991
  • 2
  • 12
  • 19
1
vote
0 answers

Grunt connect task not actually starting app

I am trying to get my grunt connect task working correctly, and I'm stumped. I have an angular app that I want to run, and it sits in a folder like this: dev/myApp |--- /modules |--- /directives |--- /vendor |--- /etc... |---…
tengen
  • 2,125
  • 3
  • 31
  • 57
1
vote
0 answers

grunt-contrib-connect with grunt-contrib-watch and Chrome LiveReload Extension

Hi I was wondering if it's possible to automatically enable Chrome LiveReload Extension from Gruntfile.js. By that I mean no clicking on the LR Extension icon in the toolbar once the page opened with grunt-open and no adding a livereload script in…
0
votes
0 answers

Trying to start local grunt dev server on specific port but it still tries to use port 9000

My VPN is occupying port 9000, so I have to use another one for my local dev server based on Grunt. Thus - I have provided a port in Gruntfile.js - like so: grunt.initConfig({ connect: { server: { options: { port:…
pesho hristov
  • 1,946
  • 1
  • 25
  • 43
0
votes
1 answer

How to communicate port from grunt connect to grunt jasmine task

I am using grunt connect ("grunt-contrib-connect": "0.11.2") in conjunction with grunt jasmine ("grunt-contrib-jasmine": "^1.1.0"). The connect config was previously hardcoding the port number and the jasmine config was also configured to use the…
DaveJohnston
  • 10,031
  • 10
  • 54
  • 83
0
votes
1 answer

How remove port number ":80" when serving localhost using grunt-contrib-connect

When I serve my project using grunt-contrib-connect, I need it to run using https, and in the browser the root path needs to be: https://localhost/ I am not familiar with how to set this up using the proxy option in grunt-contrib-connect. My…
user2115620
  • 101
  • 1
  • 10
0
votes
1 answer

Is it possible to send http calls via grunt connect?

I have a web application with front end based on angular and back end as a spring rest API. I'm using grunt connect to serve the front end while the rest api runs on localhst:8080, the grunt server runs on localhost:9002. So from angular, when I'm…
Paras
  • 3,191
  • 6
  • 41
  • 77
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

grunt-contrib-watch with livereload with vs without grunt-contrib-connect

I am new to Node,grunt and I use both grunt-contrib-watch and grunt-contrib-connect. As far as I understand, watch task with livereload = true option reruns the mentioned tasks of the target and refreshes the browser by triggering a livereload…
Madav
  • 311
  • 1
  • 5
  • 12
0
votes
1 answer

How to change gruntfile and add proxy

i have this gruntfile // Generated on 2016-11-26 using generator-angular 0.15.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all…
Sahbaz
  • 1,242
  • 4
  • 17
  • 39
0
votes
2 answers

Getting Error POST http://localhost:8080/stub/cms/myalerts2.json 405 (Method Not Allowed)

I am running my application with grunt task runner, it throws me following error: POST http://localhost:8080/stub/cms/myalerts2.json 405 (Method Not Allowed) I have tried following things in my Gruntfile.js connect: { server: { …
user1989488
  • 125
  • 1
  • 9
0
votes
1 answer

grunt-localscreenshots is getting Not Found error on rendered pages from grunt-contrib-connect

I have a situation where I'm using grunt-contrib-connect to serve files to grunt-localscreenshots. The issue is that in the output from localscreenshots all of the images have the server error, "Not Found". If I go to the server with the keepalive…
user2129933
  • 33
  • 1
  • 4
0
votes
1 answer

grunt-contrib-connect running but not working

I am using : https://github.com/gruntjs/grunt-contrib-connect "grunt-contrib-connect": "^1.0.2", After run: grunt connect Running "connect:server" (connect) task Started connect web server on http://localhost:8000 Done. So when I check in my…
raduken
  • 2,091
  • 16
  • 67
  • 105
0
votes
1 answer

How can I use grunt to open Google Chrome and pass flags like --incognito?

I am using grunt-contrib-connect for a local dev server and want to write a task to launch google chrome after server starts. But want to pass following arguments to open it in insecure mode. --args --disable-web-security --user-data-dir I tried…
Gaurang
  • 313
  • 1
  • 9
0
votes
1 answer

Gitlab runner: It is possible running an docker image that depends from another

The scenario it's the following: I need run grunt serve that serve my app in localhost:9000 in my process of continuous integration using a docker container, then I need run another container that, using the application served in the localhost:9000,…