Skip to content

Instantly share code, notes, and snippets.

View cesargalindo's full-sized avatar

Cesar Galindo cesargalindo

  • www.zojab.com
  • San Jose
View GitHub Profile
@ossobuffo
ossobuffo / build-aliases.php
Last active August 29, 2015 14:06
Workaround for Pantheon site-aliases timeouts
<?php
/*
* Solves the timeout problem when the user is a "Team" member of too many
* Pantheon sites. In that case, when running
* drush pantheon-aliases
* you may encounter a timeout on the Terminus server, and your aliases file
* will not be updated.
*
* In this workaround, we leverage Terminus's API to fetch this info in smaller
* chunks. A side benefit is that we can now get aliases for all sites in our