Skip to content

Commit

Permalink
Change env:wake to use https on the platform domain (#2287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Marks authored Dec 17, 2021
1 parent 050b95d commit d261cff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)

## 2.6.5-dev
- Change env:wake to use https on the platform domain (#2287)

## 2.6.4 2021-12-06
- Fix Terminus for PHP 5.5, 5.6, and 7.0 (#2264)

Expand Down
5 changes: 3 additions & 2 deletions src/Models/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,11 +864,12 @@ public function wake()
$domains = array_filter(
$this->getDomains()->all(),
function ($domain) {
return !empty($domain->get('dns_zone_name'));
$domain_type = $domain->get('type');
return (!empty($domain_type) && "platform" == $domain_type);
}
);
$domain = array_pop($domains);
$response = $this->request()->request("http://{$domain->id}/pantheon_healthcheck");
$response = $this->request()->request("https://{$domain->id}/pantheon_healthcheck");
return [
'success' => ($response['status_code'] === 200),
'styx' => $response['headers']['X-Pantheon-Styx-Hostname'],
Expand Down

0 comments on commit d261cff

Please sign in to comment.