Skip to content

Commit

Permalink
feat: add clickhouse service
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 18, 2024
1 parent 4891675 commit 92fc9da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clickhouse/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ pub fn setup() -> Result<String, Error> {
])?
.with_exec(vec!["[ -f clickhouse-config.yaml.template ] || pkgx wget https://raw.githubusercontent.com/fluentci-io/services/main/clickhouse/clickhouse-config.yaml.template"])?
.with_exec(vec![
"export CLICKHOUSE_CONFIG_DIR=\"$(ls -d .flox/run/*/etc)\"; ",
"[ -f $CLICKHOUSE_CONFIG ] || pkgx envsubst < clickhouse-config.yaml.template > $CLICKHOUSE_CONFIG "])?
"[ -f $CLICKHOUSE_CONFIG ] || CLICKHOUSE_CONFIG_DIR=$(ls -d .flox/run/*/etc) pkgx envsubst < clickhouse-config.yaml.template > $CLICKHOUSE_CONFIG "])?
.with_exec(vec![
"grep -q clickhouse: Procfile || echo -e 'clickhouse: clickhouse-server --config-file=$CLICKHOUSE_CONFIG \\n' >> Procfile",
])?
Expand Down

0 comments on commit 92fc9da

Please sign in to comment.