PM2如何启动ActionHero



我正在通过此命令启动ActionHero

pm2 start .node_modulesactionherobinactionhero

但是ActionHero并未成功启动,这是我的PM2日志:

错误:该项目中没有找到配置目录, - config,或在process.env.actionhero_config

中找到

我没有ActionHero的经验,但它清楚地说未找到配置目录。任何一个 1. - config参数必须作为pm2 start或 2.将ENV变量ActionHero_Config设置为适当的值。

启动选项查找配置目录

When launching ActionHero you can specify which config directory to use with --config '/path/to/dir' or the environment variable ACTIONHERO_CONFIG, otherwise ./config/ will be used from your working directory.
The priority of arguments is:
Use the project's ./config folder, if it exists.
actionhero --config=PATH1 --config=PATH2 --config=PATH3,PATH4
ACTIONHERO_CONFIG=PATH1,PATH2 npm start
Note that if --config or ACTIONHERO_CONFIG are used, they overwrite the use of the default /config folder. If you wish to use both, you need to re-specify "config", e.g. --config=config,local-config. Also, note that specifying multiple --config options on the command line does exactly the same thing as using one parameter with comma separators, however the environment variable method only supports the comma-delimited syntax.

最新更新