Skip to content

Commit

Permalink
fix(redis): install redis with pkgx instead of flox
Browse files Browse the repository at this point in the history
fix(redis): install redis with pkgx instead of flox

fix(redis): install redis with pkgx instead of flox
  • Loading branch information
tsirysndr committed Jul 10, 2024
1 parent 234c2e5 commit bdc5d63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions redis/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ pub fn setup() -> Result<String, Error> {
.stdout()?;

let stdout = dag()
.flox()?
.pkgx()?
.with_workdir(".fluentci")?
.with_exec(vec![
"flox", "install", "redis", "overmind", "tmux", "openssl",
.with_packages(vec![
"redis.io",
"github.com/darthsim/overmind",
"github.com/tmux/tmux",
])?
.with_exec(vec![
"grep -q redis Procfile || echo 'redis: redis-server' >> Procfile",
Expand Down
4 changes: 2 additions & 2 deletions redis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub mod helpers;
pub fn start(_args: String) -> FnResult<String> {
helpers::setup()?;
let stdout = dag()
.flox()?
.pkgx()?
.with_workdir(".fluentci")?
.with_exec(vec!["overmind", "--version"])?
.with_exec(vec!["redis-server", "--version"])?
Expand All @@ -23,7 +23,7 @@ pub fn start(_args: String) -> FnResult<String> {
pub fn stop(args: String) -> FnResult<String> {
helpers::setup()?;
let stdout = dag()
.flox()?
.pkgx()?
.with_workdir(".fluentci")?
.with_exec(vec!["overmind", "stop", &args])?
.stdout()?;
Expand Down

0 comments on commit bdc5d63

Please sign in to comment.