Skip to content

Commit

Permalink
fix(envconsul): quit and start overmind instead of restart
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 16, 2024
1 parent 74820be commit 1cf0720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion envconsul/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ pub fn start(_args: String) -> FnResult<String> {
.with_exec(vec!["type", "overmind"])?
.with_exec(vec!["type", "envconsul"])?
.with_exec(vec![
"overmind start -f Procfile --daemonize || flox activate -- overmind restart envconsul",
"overmind start -f Procfile --daemonize || flox activate -- overmind quit",
])?
.with_exec(vec![
"[ -f ./.overmind.sock ] || flox activate -- overmind start -f Procfile --daemonize",
])?
.with_exec(vec!["overmind", "status"])?
.with_exec(vec!["sleep", "2"])?
Expand Down

0 comments on commit 1cf0720

Please sign in to comment.