我们有一个 Rails 应用程序,并且有 semaphoreCI 运行我们的规范。在我们的本地机器中,所有规格都通过,没有任何问题。
但是,我们的所有规格都失败了,失败如下:
Failures:
1) HousesController GET #index
Got 0 failures and 2 other errors:
1.1) Failure/Error: Address.reindex
Faraday::ConnectionFailed:
Failed to open TCP connection to localhost:9200 (Connection refused - connect(2) for "localhost" port 9200)
我们一直在研究,发现https://semaphoreci.com/docs/elasticsearch.html,这意味着它已经配置好了,所以 elasticsearch 会自动运行。
是否可以作为更改默认端口信号量CI 使用的解决方案?如果是这种情况,我们怎么能做到这一点?
提前非常感谢!