You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2022/12/05 04:33:09 UTC
[pulsar-site] branch main updated: config paths as relative
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 7fe949f2e23 config paths as relative
7fe949f2e23 is described below
commit 7fe949f2e236e8da7ec72c3d8c675e60ba88374e
Author: tison <wa...@gmail.com>
AuthorDate: Mon Dec 5 12:32:52 2022 +0800
config paths as relative
Signed-off-by: tison <wa...@gmail.com>
---
tools/pytools/lib/execute/pulsar_clidoc_generator.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/pytools/lib/execute/pulsar_clidoc_generator.py b/tools/pytools/lib/execute/pulsar_clidoc_generator.py
index e6907923107..ffc9f20ae48 100644
--- a/tools/pytools/lib/execute/pulsar_clidoc_generator.py
+++ b/tools/pytools/lib/execute/pulsar_clidoc_generator.py
@@ -44,4 +44,10 @@ def execute(basedir: Path, version: str):
for command in commands:
with (reference / f'{command[0]}.md').open('w') as f:
- run(str(pulsar.absolute()), *command, codes={0, 255}, stdout=f)
+ run(str(pulsar.absolute()), *command, codes={0, 255}, stdout=f, env={
+ 'PULSAR_BROKER_CONF': 'conf/broker.conf',
+ 'PULSAR_WORKER_CONF': 'conf/functions_worker.yml',
+ 'PULSAR_PROXY_CONF': 'conf/proxy.conf',
+ 'PULSAR_STANDALONE_CONF': 'conf/standalone.conf',
+ **os.environ,
+ }, cwd=basedir)