Skip to content

Commit b34cd60

Browse files
committed
docs on userStop option
1 parent c5bd0e2 commit b34cd60

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class ServerlessDynamodbLocal {
8989
shortcut: "e",
9090
usage: "Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.",
9191
},
92-
leaveOn: {
93-
usage: 'Keep the process running until user sends kill command. This will kill the process the database is running once user sends terminate.'
92+
userStop: {
93+
usage: 'After starting dynamodb local and all migrations and seeding is completed (if set to run), process will stay open until user terminates runinng process. When terminate signal received, it will stop the database on the running port.'
9494
}
9595
}
9696
},
@@ -262,7 +262,8 @@ class ServerlessDynamodbLocal {
262262
.then(() => options.migrate && this.migrateHandler())
263263
.then(() => options.seed && this.seedHandler())
264264
.then(() => {
265-
if (options.leaveOn) {
265+
if (options.userStop) {
266+
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...")
266267
return BbPromise.resolve()
267268
.then(() => this._listenForTermination())
268269
.then(() => this.endHandler());

0 commit comments

Comments
 (0)