Skip to content

Commit

Permalink
AHOC feat (installation): let indexer run
Browse files Browse the repository at this point in the history
it is important to run magento indexer upon installation, cause it fills
index tables with initial data, it also fills elasticsearch on the first run.

Without running indexer magento is not fully operational after first deploy.
  • Loading branch information
Anton Boritskiy committed Aug 22, 2019
1 parent b9e6368 commit 0354348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
become_user: "{{ magento_user }}"
command: "/usr/bin/php {{ magento_app_root }}/bin/magento cache:flush"

- name: "Let Magento indexer run"
become: "yes"
become_user: "{{ magento_user }}"
command: "/usr/bin/php {{ magento_app_root }}/bin/magento indexer:reindex"

- name: "Disable maintenance mode"
file:
path: "{{ magento_release_folder }}/{{ magento_release_version }}/var/.maintenance.flag"
Expand Down

0 comments on commit 0354348

Please sign in to comment.