I have a simple rails app built on top of neo4j db. In my circle.yml I defined the steps needed to set-up neo4j like this:
database: override: - rake neo4j:install[community-latest,test] - rake neo4j:config[test,7475] - rake neo4j:start[test]
During build, the db set-up seems to work fine:
Starting Neo4j test…
Starting Neo4j Server…WARNING: not changing user
process … waiting for server to be ready… OK.
http://localhost:7475/ is ready.
But when rspec starts to run, I get the following message:
connection refused: localhost:7475
When I ssh to the build machine, and take a look at the neo4j logs, I see the following:
So for some reason, it seems like neo4j is being shut-down before specs are run. If I start neo4j manually on the build machine using
rake neo4j:start[test], and run rspec, all works as expected. I tried moving the rake start command to
test->pre section of
circle.yml, but that didn’t help.
Any idea what’s going on here?