航行警告 --minUptime 未设置
sails warnings --minUptime not set
我的 sails 应用程序告诉我这个警告:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
我必须在哪里设置它?
可能在 package.json 中设置?
{
"name": "HoloDive",
"version": "1.2.1",
"description": "Comfortable maintenance for Holacracy-based organizations.",
"author": "Michael Walz <michaelwalz.dev@gmail.com>",
"private": true,
"keywords": [
"holacracy",
"organization",
"governance"
],
"bugs": {
"email": "michaelwalz.dev@gmail.com"
},
"scripts": {
"start": "sails lift --prod",
"debug": "node debug app.js",
"test": "grunt test"
},
"engines": {
"node": ">=6.11.1",
"npm": ">=3.10.10"
},
这些可能是命令行参数,您需要在从 *SH 控制台启动应用程序时将其传递给您的应用程序。
而不是只写
$ sails yourApp
尝试设置参数的命令
$ sails --minUptime 1000 --spinSleepTime 1000 yourApp
我的 sails 应用程序告诉我这个警告:
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
我必须在哪里设置它?
可能在 package.json 中设置?
{
"name": "HoloDive",
"version": "1.2.1",
"description": "Comfortable maintenance for Holacracy-based organizations.",
"author": "Michael Walz <michaelwalz.dev@gmail.com>",
"private": true,
"keywords": [
"holacracy",
"organization",
"governance"
],
"bugs": {
"email": "michaelwalz.dev@gmail.com"
},
"scripts": {
"start": "sails lift --prod",
"debug": "node debug app.js",
"test": "grunt test"
},
"engines": {
"node": ">=6.11.1",
"npm": ">=3.10.10"
},
这些可能是命令行参数,您需要在从 *SH 控制台启动应用程序时将其传递给您的应用程序。
而不是只写
$ sails yourApp
尝试设置参数的命令
$ sails --minUptime 1000 --spinSleepTime 1000 yourApp