Skip to content

Commit

Permalink
Add database block names
Browse files Browse the repository at this point in the history
  • Loading branch information
pacotole committed Aug 3, 2022
1 parent 4bb1d77 commit c57c3f3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
msg: "ERROR: development is not a valid environment for this mode (you can't push/pull from development to development)."
when: env == "development"

# PULL database
- block:
- name: PULL database
block:
- name: Modify GUID columns
set_fact:
skip_guids_option: ""
Expand Down Expand Up @@ -87,11 +87,10 @@
- name: PULL > Elementor flush CSS on development
connection: local
shell: vagrant ssh -- "cd {{ project_current }} && wp cli has-command 'elementor flush_css' && [ $? -eq 0 ] && wp elementor flush_css --skip-themes || cd ."

when: mode is not defined or mode == "pull"

# PUSH database
- block:
- name: PUSH database
block:
- name: PUSH > Export & gzip development database
connection: local
shell: vagrant ssh -- 'cd {{ project_current }} && wp db export {{ sync_file }} --skip-plugins --skip-themes && gzip -q {{ sync_file }}'
Expand Down Expand Up @@ -156,5 +155,4 @@
shell: wp cli has-command 'elementor flush_css' && [ $? -eq 0 ] && wp elementor flush_css --skip-themes || cd .
args:
chdir: "{{ project_current }}"

when: mode is defined and mode == "push"

0 comments on commit c57c3f3

Please sign in to comment.