Skip to content

Commit

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

## 3.0.2-dev

### Fixed
- Change env:wake to use https on the platform domain (#2283)

## 3.0.1 - 2021-12-08

### Fixed
Expand Down
5 changes: 3 additions & 2 deletions src/Models/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,11 +900,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 ca22176

Please sign in to comment.