Include nodeenv installed binaries. (#117)

pull/131/head
Chris McCormick 2019-11-14 01:56:07 +08:00 zatwierdzone przez Rui Carmo
rodzic 1d8fac8583
commit 953b299ab1
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -514,6 +514,9 @@ def deploy_node(app, deltas={}):
if exists(env_file):
env.update(parse_settings(env_file, env))
# include node binaries on our path
environ["PATH"] = env["PATH"]
version = env.get("NODE_VERSION")
node_binary = join(virtualenv_path, "bin", "node")
installed = check_output("{} -v".format(node_binary), cwd=join(APP_ROOT, app), env=env, shell=True).decode("utf8").rstrip("\n") if exists(node_binary) else ""