我的风帆应用程序告诉我这个警告:
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"
},
答案 0 :(得分:1)
这些可能是命令行参数,您需要在从* SH控制台启动时传递给您的应用。
而不仅仅是写作
$ sails yourApp
尝试使用参数集
的命令$ sails --minUptime 1000 --spinSleepTime 1000 yourApp