lib/harbr/job.rb in harbr-0.1.73 vs lib/harbr/job.rb in harbr-0.1.74

- old
+ new

@@ -130,11 +130,11 @@ create_runit_scripts(name, port, env) link_directories(name, version, env) sync_live_data_if_next(name) if env == "next" - containers = collate_containers("#{name}", "#{manifest.host}", port) if env == "current" - containers = collate_containers("#{env}.#{name}", "#{env}.#{manifest.host}", port) if env == "next" + containers = collate_containers("#{name}", "#{manifest.host}", port,manifest.host_header_alias) if env == "current" + containers = collate_containers("#{env}.#{name}", "#{env}.#{manifest.host}", port,manifest.host_header_alias.map{|host| "#{env}.#{host}" }) if env == "next" create_traefik_config(containers) system "sv restart #{env}.#{name}" if env == "next" system "sv restart #{name}" if env == "current"