Skip to content

Commit

Permalink
drop tables before recreating
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 13, 2020
1 parent 87957af commit 6731c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/mongodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ resource "null_resource" "mongodb_formio_first_Time_install" {
environment = {
SCRIPT_PATH = var.hostRootPath
}
command = "docker run --net=ocwa_vnet -v \"$SCRIPT_PATH/..:/work\" mongo:4.2.1 mongo mongodb://${var.mongodb["username"]}:${random_string.mongoSuperPassword.result}@ocwa_mongodb:27017/formioapp --eval db.submissions.drop(); db.forms.drop(); db.roles.drop();"
command = "docker run --net=ocwa_vnet -v \"$SCRIPT_PATH/..:/work\" mongo:4.2.1 mongo mongodb://${var.mongodb["username"]}:${random_string.mongoSuperPassword.result}@ocwa_mongodb:27017/formioapp --eval \"db.submissions.drop(); db.forms.drop(); db.roles.drop();\""
}


Expand Down

0 comments on commit 6731c13

Please sign in to comment.