Skip to content

Commit d261cff

Browse files
author
Ryan Marks
authored
Change env:wake to use https on the platform domain (#2287)
1 parent 050b95d commit d261cff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)
33

4+
## 2.6.5-dev
5+
- Change env:wake to use https on the platform domain (#2287)
6+
47
## 2.6.4 2021-12-06
58
- Fix Terminus for PHP 5.5, 5.6, and 7.0 (#2264)
69

src/Models/Environment.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,12 @@ public function wake()
864864
$domains = array_filter(
865865
$this->getDomains()->all(),
866866
function ($domain) {
867-
return !empty($domain->get('dns_zone_name'));
867+
$domain_type = $domain->get('type');
868+
return (!empty($domain_type) && "platform" == $domain_type);
868869
}
869870
);
870871
$domain = array_pop($domains);
871-
$response = $this->request()->request("http://{$domain->id}/pantheon_healthcheck");
872+
$response = $this->request()->request("https://{$domain->id}/pantheon_healthcheck");
872873
return [
873874
'success' => ($response['status_code'] === 200),
874875
'styx' => $response['headers']['X-Pantheon-Styx-Hostname'],

0 commit comments

Comments
 (0)