From ee4af073e1f6418fe09b4c97bda3ce7baf3312d4 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Mon, 29 Jul 2024 07:33:31 +0000 Subject: [PATCH] Temporarily deploy to blue --- config/deploy.rb | 12 +++++++----- config/deploy/production.rb | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/deploy.rb b/config/deploy.rb index 48a7b59e0..14e6d65c4 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -1,5 +1,5 @@ # config valid for current version and patch releases of Capistrano -lock "~> 3.17.1" +lock "~> 3.19.1" set :application, "planningalerts" set :repo_url, "https://github.com/openaustralia/planningalerts.git" @@ -56,10 +56,12 @@ }, # Uncomment the following lines (and set the value) if you want to only deploy to blue or green # The default is to deploy to both blue AND green - # { - # name: "tag:BlueGreen", - # values: ["blue"] - # }, + # Temporarily only deploy to blue (for ruby 3.3) + # TODO: Comment the four lines below back out + { + name: "tag:BlueGreen", + values: ["blue"] + }, { name: 'instance-state-name', values: ['running'] diff --git a/config/deploy/production.rb b/config/deploy/production.rb index a82922e34..a908c3a81 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -3,3 +3,4 @@ aws_ec2_register set :deploy_to, "/srv/www/production" +set :branch, "upgrade-to-ruby-3.3" \ No newline at end of file