Commit eccf4950 authored by Samuel Sirois's avatar Samuel Sirois
Browse files

Change drush.aliases execution context from local to DOCKER

This resolves right issues that I've seen happening under
certain circumstances.
parent a4863e28
Pipeline #1192 passed with stages
in 2 minutes and 11 seconds
......@@ -65,7 +65,7 @@ def make(action='install'):
@task
@roles('local')
@roles('docker')
def aliases():
"""
Copy conf/aliases.drushrc.php in the site environment.
......@@ -73,7 +73,7 @@ def aliases():
role = 'docker'
drush_aliases = env.site_drush_aliases
workspace = env.workspace
workspace = env.docker_workspace
if not h.fab_exists(role, drush_aliases):
h.fab_run(role, 'mkdir -p {}'.format(drush_aliases))
......
......@@ -56,7 +56,7 @@ if is_core_profile(env.site_profile):
env.makefile = path.join(env.builddir, env.site_profile_makefile)
else:
env.makefile = path.join(env.builddir, env.site_profile, env.site_profile_makefile)
env.site_drush_aliases = path.join(env.site_root, 'sites/all/drush')
env.site_drush_aliases = path.join(env.docker_site_root, 'sites/all/drush')
def fab_run(role="local", cmd="", capture=False):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment