Skip to content

Commit

Permalink
feat(mariadb): wait on $MYSQL_PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 12, 2024
1 parent 4fca9b2 commit 3026998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mariadb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ pub fn start(_args: String) -> FnResult<String> {
.with_exec(vec!["type", "mysql"])?
.with_exec(vec!["echo -e \"MySQL starting on port $MYSQL_PORT\""])?
.with_exec(vec!["overmind", "start", "-f", "Procfile", "--daemonize"])?
.with_exec(vec!["sleep", "5"])?
.wait_on(port.parse()?, None)?
.with_exec(vec!["cat", "$MYSQL_HOME/mysql.log"])?
.with_exec(vec!["overmind", "status"])?
.wait_on(port.parse()?, None)?
.stdout()?;
Ok(stdout)
}
Expand Down

0 comments on commit 3026998

Please sign in to comment.