Skip to content

Commit

Permalink
feat: add neo4j service
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 24, 2024
1 parent c643f15 commit 85ccf16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions neo4j/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ pub fn setup() -> Result<String, Error> {
let stdout = dag()
.devbox()?
.with_workdir(".fluentci/neo4j")?
.with_exec(vec!["devbox", "add", "neo4j", "overmind", "tmux"])?
.with_exec(vec![
"devbox",
"add",
"neo4j",
"overmind",
"tmux",
])?
.with_exec(vec![
"grep -q neo4j: Procfile || echo -e 'neo4j: devbox run neo4j console $NEO4J_ARGS \\n' >> Procfile",
"grep -q neo4j: Procfile || echo -e 'neo4j: devbox run neo4j console \\n' >> Procfile",
])?
.stdout()?;

Expand Down
2 changes: 1 addition & 1 deletion neo4j/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn start(_args: String) -> FnResult<String> {
.with_exec(vec!["type neo4j"])?
.with_exec(vec!["neo4j --version"])?
.with_exec(vec![
"overmind start -f Procfile --daemonize || devbox run overmind restart neo4j",
"overmind start -f Procfile || devbox run overmind restart neo4j",
])?
.wait_on(7474, None)?
.wait_on(7687, None)?
Expand Down

0 comments on commit 85ccf16

Please sign in to comment.