diff options
author | ILYA Khlopotov <iilyak@apache.org> | 2021-09-15 11:39:31 -0700 |
---|---|---|
committer | ILYA Khlopotov <iilyak@apache.org> | 2021-09-16 04:20:34 -0700 |
commit | 3d5f244c4e0235b95938f2eec41862f8a5d55d66 (patch) | |
tree | ca8fd81f6edeeee1efdfbc32f234540c87aecca3 | |
parent | 65fbc6cfdb29bab1072a42f4d6005da452a7fa65 (diff) | |
download | couchdb-3d5f244c4e0235b95938f2eec41862f8a5d55d66.tar.gz |
Add --erlang-config option to dev/run
-rwxr-xr-x | dev/run | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -187,6 +187,12 @@ def get_args_parser(): help="Optional key=val config overrides. Can be repeated", ) parser.add_option( + "--erlang-config", + dest="erlang_config", + default="rel/files/sys.config", + help="Specify an alternative Erlang application configuration", + ) + parser.add_option( "--degrade-cluster", dest="degrade_cluster", type=int, @@ -242,6 +248,7 @@ def setup_context(opts, args): "haproxy": opts.haproxy, "haproxy_port": opts.haproxy_port, "config_overrides": opts.config_overrides, + "erlang_config": opts.erlang_config, "no_eval": opts.no_eval, "extra_args": opts.extra_args, "reset_logs": True, @@ -620,7 +627,7 @@ def boot_node(ctx, node): "-args_file", os.path.join(node_etcdir, "vm.args"), "-config", - os.path.join(reldir, "files", "sys"), + os.path.join(ctx["rootdir"], ctx["erlang_config"]), "-couch_ini", os.path.join(node_etcdir, "default.ini"), os.path.join(node_etcdir, "local.ini"), |