Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
42
box/provisioning/templates/drupalvm.aliases.drushrc.php.j2
Normal file
42
box/provisioning/templates/drupalvm.aliases.drushrc.php.j2
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Drupal VM drush aliases.
|
||||
*
|
||||
* @see example.aliases.drushrc.php.
|
||||
*/
|
||||
|
||||
{% macro alias(host, root) -%}
|
||||
{%- if root not in _devtool_docroots %}
|
||||
$aliases['{{ host }}'] = array(
|
||||
'uri' => '{{ host }}',
|
||||
'root' => '{{ root }}',
|
||||
'remote-host' => '{{ host }}',
|
||||
'remote-user' => '{{ vagrant_user }}',
|
||||
'ssh-options' => '-o "SendEnv PHP_IDE_CONFIG PHP_OPTIONS XDEBUG_CONFIG" -o PasswordAuthentication=no -i "' . (getenv('VAGRANT_HOME') ?: drush_server_home() . '/.vagrant.d') . '/insecure_private_key"',
|
||||
'path-aliases' => array(
|
||||
'%drush-script' => '{{ drush_path }}',
|
||||
),
|
||||
);
|
||||
|
||||
{% endif -%}
|
||||
{% endmacro -%}
|
||||
|
||||
{% block aliases -%}
|
||||
{%- if drupalvm_webserver == 'apache' -%}
|
||||
{%- for vhost in apache_vhosts -%}
|
||||
{{ alias(vhost.servername, vhost.documentroot) }}
|
||||
{%- if vhost.serveralias is defined -%}
|
||||
{%- for serveralias in vhost.serveralias.split() -%}
|
||||
{{ alias(serveralias, vhost.documentroot) }}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- elif drupalvm_webserver == 'nginx' -%}
|
||||
{%- for host in nginx_vhosts -%}
|
||||
{%- for server_name in host.server_name.split() -%}
|
||||
{{ alias(server_name, host.root) }}
|
||||
{%- endfor -%}
|
||||
{%- endfor -%}
|
||||
{%- endif -%}
|
||||
{%- endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue