简体   繁体   English

如何更改ArangoDB Foxx App生成位置

[英]How to change the ArangoDB Foxx App Generate Location

Is it possible to generate a new foxx app in an arbitrary location? 是否可以在任意位置生成新的foxx应用程序?

foxx-manager install EMPTY /some-app

creates and installs some-app from the default /var/lib/arangodb-apps location. 从默认的/ var / lib / arangodb-apps位置创建并安装some-app。 I'm running ArangoDB 2.7.1. 我正在运行ArangoDB 2.7.1。 I've tried the --javascript.app-path switch, but it isn't recognized as an option even though it's referenced here 我已经尝试过--javascript.app-path开关,但是即使此处引用它,也无法将其识别为选项

The javascript.app-path switch should work (alternatively you can try using the app-path setting in the javascript section of your arangod.conf ) but it will be used for all Foxx apps. javascript.app-path开关应该可以工作(或者,您可以尝试使用arangod.confjavascript部分中的app-path设置),但它将用于所有 Foxx应用程序。 However this is an option of the arangod server (which performs the actual installation of Foxx apps), not of the foxx-manager CLI (which just tells the server what to install). 但是,这是arangod服务器(用于执行Foxx应用程序的实际安装)的选项,而不是foxx-manager CLI(仅告诉服务器要安装的内容)的选项。

There's no way to install a Foxx app outside the app-path . 无法在app-path之外安装Foxx应用。 Mount paths are always translated to paths that are relative to the app-path . 装入路径始终会转换为相对于app-path

You're saying the switch isn't recognized. 您是在说开关未被识别。 Can you give an example of how you tried to use it and the error message you received? 您能否举例说明如何使用它以及收到的错误消息? Are you running arangod directly? arangod直接在运行arangod吗? And have you made sure there isn't already a daemonized version of arangod running in the background? 并且您确定后台没有运行守护进程的arangod版本吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM