Rename deployment targets

This commit is contained in:
Kevin McConnell
2025-01-14 17:32:16 +00:00
parent e7819328e8
commit bab5bc718d
3 changed files with 6 additions and 0 deletions
+6
View File
@@ -14,7 +14,13 @@ end
include SSHKit::DSL
config_variant = "-#{ARGV[0]}" if ARGV[0]
begin
config = YAML.load_file("config/deploy#{config_variant}.yml")
rescue Errno::ENOENT
puts "No deploy config found for #{config_variant || "default" }"
exit 1
end
HOSTS = [ config["host"] ]
REMOTE_USER = config["ssh_user"]