如何编写节点列表的应用环境值? [英] How to write application environment value of node list?

查看:69
本文介绍了如何编写节点列表的应用环境值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用钢筋释放时,我必须设置一个环境变量。这是一个节点列表。例如:

When using rebar for release, I have to set an environment variable. It is a node list. For example:

vm.args
# -zarah cluster_nodes ['zarah_slave_a@yus-iMac.local','zarah_slave_b@yus-iMac.local','emacs@yus-iMac.local']

但是运行时,shell会给出错误消息:

But when running, the shell gives the error message:

*************
{error_logger,{{2013,11,20},{10,47,28}},"application_controller: ~ts: ~ts~n",[["syntax error before: ","'.'"],"[zarah_slave_a@yus-iMac.local,zarah_slave_b@yus-iMac.local,emacs@yus-iMac.local]"]}
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:fals

我认为这是由。引起的问题。在节点名称中。

I think it is the problem cause by "." in the node name. How to deal with it?

推荐答案

在单引号之前添加双引号,它将起作用。

Add a double quote before the single quote and it will work.

-zarah cluster_nodes ["'zarah_slave_a@yus-iMac.local'","'zarah_slave_b@yusiMac.local'","'emacs@yus-iMac.local'"]

这篇关于如何编写节点列表的应用环境值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆