Skip to content

Commit

Permalink
[HOTFIX] Raccoon - fix switch project playbook - update file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkeen committed May 11, 2020
1 parent 81f3221 commit bb9959d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions vagrant.configure-vm.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
- hosts: localhost
connection: local
become: no
gather_facts: no
roles:
- role: cs.vagrant
6 changes: 3 additions & 3 deletions vagrant.switch-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
force: yes
state: link
src: "{{ mageops_app_web_dir }}/{{ mageops_project }}"
dest: "{{ mageops_app_web_dir }}/current"
dest: "{{ magento_live_release_dir }}"
owner: "{{ magento_user }}"
group: "{{ magento_group }}"

- name: Save projects info to file
- name: Save project info to file
copy:
dest: "{{ mageops_app_web_dir }}/current_project.json"
content: "{{ mageops_current_project_info | to_nice_json }}"
Expand All @@ -27,7 +27,7 @@

- name: Change project name in nginx config
lineinfile:
path: "{{ nginx_confd_dir }}/magento.conf"
path: "{{ nginx_confd_dir }}/050-vhost-magento.conf"
regexp: '^\s*set\s+\$PROJ_NAME\s+[\w\-_]+;\s*$'
line: ' set $PROJ_NAME {{ mageops_project }};'
create: no
Expand Down

0 comments on commit bb9959d

Please sign in to comment.