Grunt-contrib-connect: only root accessible, only on the CI server

I've been banging my head against the wall trying to figure out what's going on and I hope someone can help.

I am using grunt-contrib-connect

to run a static server to run mocha specs versus using selenium. Locally on OS X 10.10 everything works fine. Wonderful.

However, on CI (Semaphore), the server starts up, the characteristics start working, the first specification that hits /

passes without problems. However, the following specifications, which are linked to /path/to/html/

, do not work. I threw a few queries curl

to see if maybe this is just a testing issue, I can curl http://localhost:3023

work fine, curl http://localhost:3023/path/to/html/

404s. The files are exactly where they should be, and as I said, it all works on my local machine.

Any ideas what might be going on? Here is my grunt config:

connect: { options: { port: 4000, hostname: 'localhost', livereload: 35729 }, livereload: { options: { middleware: function(connect) { return [ // Load the middleware provided by the livereload plugin // that will take care of inserting the snippet require('grunt-contrib-livereload/lib/utils').livereloadSnippet, connect.bodyParser(), connect.static(paths.dist.root) ]; } } }, test: { options: { port: 3023, host: '*', base: paths.dist.root, livereload: false, debug: true, directory: paths.dist.root, middleware: function(connect) { return [ connect.static(paths.dist.root) ]; } } }, dist: { options: { port: 1338, open: 'http://localhost:1338/', base: paths.dist.root, livereload: false, keepalive: true } } },

I am calling connect:test

for a testing task. Any help would be greatly appreciated.

+3


source to share


1 answer


The problem was capitalizing on ... sigh. The URL had all caps which OS X didn't care about, but Ubuntu. Once this was changed, everything worked.



0


source







All Articles