Skip to content

Commit d70df21

Browse files
add command flag
1 parent a5a84e3 commit d70df21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ See [knex documentation](https://knexjs.org/#Installation-migrations) for more d
111111
## In production
112112
In production, you can run database migrations via `cf run-task`. As with anything in production, be careful when doing this! First, try checking the current status of migrations using the `migrate:status` command
113113
```
114-
cf run-task analytics-reporter-api "knex migrate:status" --name check_migration_status
114+
cf run-task analytics-reporter-api --command "knex migrate:status" --name check_migration_status
115115
```
116116
This will kick off a task - you can see the output by running:
117117
```
@@ -128,7 +128,7 @@ cf logs analytics-reporter-api --recent
128128

129129
To actually run the migration, you would run:
130130
```
131-
cf run-task analytics-reporter-api "knex migrate:latest" --name run_db_migrations
131+
cf run-task analytics-reporter-api --command "knex migrate:latest" --name run_db_migrations
132132
```
133133

134134
See [knex documentation](https://knexjs.org/#Installation-migrations) for more details and options on the `migrate` command.

0 commit comments

Comments
 (0)