Skip to content

Commit

Permalink
feat: move deployment from heroku to digital ocean droplet with dokku…
Browse files Browse the repository at this point in the history
… instance
  • Loading branch information
lipelix committed Dec 29, 2022
1 parent 682fd88 commit f03c3b0
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 119 deletions.
24 changes: 24 additions & 0 deletions infra/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
backend "remote" {
hostname = "app.terraform.io"
organization = "lipelix"

workspaces {
name = "pocasi-pro-lidi-dokku"
}
}
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "3.19.0"
}
}
}

provider "cloudflare" {
api_token = var.cloudflare_api_token
}

resource "cloudflare_zone" "this" {
zone = "pocasi-pro-lidi.cz"
}

resource "cloudflare_record" "this" {
zone_id = cloudflare_zone.this.id
name = "pocasi-pro-lidi.cz"
value = "139.59.142.55"
type = "A"
proxied = true
}
5 changes: 0 additions & 5 deletions terraform/variables.tf → infra/variables.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
variable "heroku_api_key" {
type = string
sensitive = true
}

variable "openweather_api_key" {
type = string
sensitive = true
Expand Down
90 changes: 0 additions & 90 deletions terraform/main.tf

This file was deleted.

24 changes: 0 additions & 24 deletions terraform/output.tf

This file was deleted.

0 comments on commit f03c3b0

Please sign in to comment.