Skip to content

Commit 8b6976b

Browse files
authored
Merge pull request #447 from roots/alias-cmd-readd-project-root-support
Re-add `project_root` support in `alias` command
2 parents b603392 + 883f0cb commit 8b6976b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% if include_local_env | default(false) %}
22
"@{{ env }}":
33
ssh: "{{ local_hostname_alias }}"
4-
path: "{{ www_root + '/' + item.key | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp"
4+
path: "{{ project_root | default(www_root + '/' + item.key) | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp"
55
{% else %}
66
"@{{ env }}":
77
ssh: "{{ web_user }}@{{ ansible_host }}:{{ ansible_port | default('22') }}"
8-
path: "{{ www_root + '/' + item.key | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp"
8+
path: "{{ project_root | default(www_root + '/' + item.key) | regex_replace('^~\/','') }}/{{ item.value.current_path | default('current') }}/{{ item.value.public_path | default('web') }}/wp"
99
{% endif %}

0 commit comments

Comments
 (0)