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 6b9b8c5 commit 4891675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +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![
"CLICKHOUSE_CONFIG_DIR=$(ls -d .flox/run/*/etc); ",
"export CLICKHOUSE_CONFIG_DIR=\"$(ls -d .flox/run/*/etc)\"; ",
"[ -f $CLICKHOUSE_CONFIG ] || 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 4891675

Please sign in to comment.