3

我一直在用头撞墙,试图弄清楚发生了什么,我希望有人能提供帮助。

我正在使用grunt-contrib-connect启动一个静态服务器来运行 mocha 规范反对使用 selenium。在本地 OS X 10.10 上,一切正常。精彩的。

但是,在 CI(信号量)上,服务器启动,规范开始运行,第一个命中的规范/没有问题地通过。但是,连接到所有的下一个规范/path/to/html/都失败了。我提出了一些curl请求,看看这是否只是一个测试问题,我可以curl http://localhost:3023正常工作,curl http://localhost:3023/path/to/html/404s。这些文件正是它们应该在的位置,就像我说的那样,这一切都在我的本地机器上运行。

任何想法可能会发生什么?这是我的咕噜声配置:

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 } } },

我正在呼吁connect:test测试任务。任何帮助将不胜感激。

4

1 回答 1

0

问题是大写……叹息。url 路径有大写字母,OS X 不关心,但 Ubuntu 关心。一旦改变了一切工作。

于 2014-11-14T16:10:25.727 回答