<?php
/**
 * Drush Aliases
 *
 * This file provides for the automatic generation of site aliases based
 * on the file layout and configuration of the Docker hosting environment.
 *
 * Site alias for tuned Drush usage with the '<%= projectName %>' site.
 */

function p2_env_get_url() {
  if (isset($_ENV['VIRTUAL_HOST'])) {
    return $_ENV['VIRTUAL_HOST'];
  }

  return 'http://www.<%= projectName %>.vm/';
}

$aliases['<%= projectName %>'] = array(
  'url' => p2_env_get_url(),
  'root' => '/var/www/html'
);

<?php
/**
 * Drush Aliases
 *
 * This file provides for the automatic generation of site aliases based
 * on the file layout and configuration of the Docker hosting environment.
 *
 * Site alias for tuned Drush usage with the '<%= projectName %>' site.
 */

$aliases['<%= projectName %>'] = array(
  'url' =>   'url' => isset($_ENV['VIRTUAL_HOST']) ? $_ENV['VIRTUAL_HOST'] : 'http://www.<%= projectName %>.vm/',
  'root' => '/var/www/html'
);

Remove function from alias file to avoid redclare errors on multiple alias file loading.
Remove function from alias file to avoid redclare errors on multiple alias file loading.
