我要用这个命令启动行动英雄
pm2 start .\node_modules\actionhero\bin\actionhero
但是动作英雄没有成功启动,这在我的pm2日志中:
错误:在此项目中未找到任何配置目录,使用--config指定,或在process.env.ACTIONHERO_CONFIG中找到。
发布于 2019-05-08 09:07:46
我没有使用action英雄的经验,但它清楚地说没有找到任何配置目录。配置参数必须作为pm2开始或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.https://stackoverflow.com/questions/56037092
复制相似问题