Skip to content

Commit

Permalink
minimize downtime during new deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed Oct 24, 2023
1 parent 0702313 commit cbd50f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/modules/daily_snapshot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ resource "digitalocean_droplet" "forest" {
provisioner "remote-exec" {
inline = local.init_commands
}

lifecycle {
create_before_destroy = true
}
}


Expand Down
4 changes: 4 additions & 0 deletions terraform/modules/filecoin_node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ resource "digitalocean_droplet" "forest" {
})

tags = [var.chain]

lifecycle {
create_before_destroy = true
}
}

resource "digitalocean_volume" "forest_volume" {
Expand Down
4 changes: 4 additions & 0 deletions terraform/modules/sync_check/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ resource "digitalocean_droplet" "forest" {
provisioner "remote-exec" {
inline = local.init_commands
}

lifecycle {
create_before_destroy = true
}
}

data "digitalocean_project" "forest_project" {
Expand Down

0 comments on commit cbd50f2

Please sign in to comment.