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 f0c917d commit 1dff1d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neo4j/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pub fn setup() -> Result<String, Error> {
.with_exec(vec!["mkdir", "-p", ".fluentci/neo4j"])?
.stdout()?;

let pwd = dag().get_env("PWD")?;

let stdout = dag()
.devbox()?
.with_workdir(".fluentci/neo4j")?
Expand All @@ -16,7 +18,7 @@ pub fn setup() -> Result<String, Error> {
])?
.with_exec(vec!["[ -f ../../neo4j.conf ] || pkgx wget https://raw.githubusercontent.com/fluentci-io/services/main/neo4j/neo4j.conf -O ../../neo4j.conf"])?
.with_exec(vec![
"grep -q neo4j: Procfile || echo -e 'neo4j: devbox run NEO4J_CONF=\"../../\" NEO4J_HOME=\"../../neo4j\" neo4j console $NEO4J_ARGS \\n' >> Procfile",
&format!("grep -q neo4j: Procfile || echo -e 'neo4j: devbox run NEO4J_CONF=\"{}\" NEO4J_HOME=\"{}/neo4j\" neo4j console $NEO4J_ARGS \\n' >> Procfile", pwd, pwd),
])?
.stdout()?;

Expand Down

0 comments on commit 1dff1d3

Please sign in to comment.