We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--minUptime
--spinSleepTime
1 parent 1e4b2f6 commit 055c483Copy full SHA for 055c483
lib/forever/cli.js
@@ -200,6 +200,19 @@ var getOptions = cli.getOptions = function (file) {
200
options[key] = app.config.get(key);
201
});
202
203
+ if (!options.minUptime) {
204
+ forever.log.warn('--minUptime not set. Defaulting to: 1000ms');
205
+ options.minUptime = 1000;
206
+ }
207
+
208
+ if (!options.spinSleepTime) {
209
+ forever.log.warn([
210
+ '--spinSleepTime not set. Your script',
211
+ 'will exit if it does not stay up for',
212
+ 'at least ' + options.minUptime + 'ms'
213
+ ].join(' '));
214
215
216
options.sourceDir = options.sourceDir || (file && file[0] !== '/' ? process.cwd() : '/');
217
if (options.sourceDir) {
218
options.spawnWith = {cwd: options.sourceDir};
0 commit comments