Skip to content

Commit

Permalink
Simplify hostname trimming. References #762.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Dec 10, 2024
1 parent 3468b45 commit 407c8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/cli/app/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def old_version_renamed_if_clashing

def start_new_version
audit "Booted app version #{version}"
hostname = "#{host.to_s[0...51].gsub(/\.+$/, '')}-#{SecureRandom.hex(6)}"
hostname = "#{host.to_s[0...51].chomp(".")}-#{SecureRandom.hex(6)}"

execute *app.ensure_env_directory
upload! role.secrets_io(host), role.secrets_path, mode: "0600"
Expand Down

0 comments on commit 407c8b8

Please sign in to comment.