Skip to content

Commit

Permalink
Update deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vylpes committed Sep 23, 2023
1 parent e866f2e commit c9f037c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Expand Up @@ -61,7 +61,7 @@ jobs:
port: ${{ secrets.SSH_PORT }}
envs: DB_NAME,DB_AUTH_USER,DB_AUTH_PASS,DB_HOST,DB_PORT,DB_ROOT_HOST,DB_SYNC,DB_LOGGING,DB_DATA_LOCATION,BOT_TOKEN,BOT_VER,BOT_AUTHOR,BOT_OWNERID,BOT_CLIENTID,ABOUT_FUNDING,ABOUT_REPO
script: |
cd ~/apps/vylbot/ \
cd ~/app \
&& docker compose down \
&& (pm2 stop vylbot || true) \
&& (pm2 delete vylbot || true) \
Expand Down
11 changes: 0 additions & 11 deletions infrastructure/prod/main.tf
Expand Up @@ -34,17 +34,6 @@ resource "vultr_instance" "vps-app" {
user_data = file("./cloud-config.yml")
}

resource "vultr_block_storage" "bs-data" {
size_gb = 10
region = "lhr"
attached_to_instance = "${vultr_instance.vps-app.id}"
label = "${var.INSTANCE_PREFIX}-ldn-bs-data"

lifecycle {
prevent_destroy = true
}
}

resource "vultr_reserved_ip" "ip-app" {
region = "lhr"
ip_type = "v4"
Expand Down

0 comments on commit c9f037c

Please sign in to comment.