zammad: Führe rails tasks im Kontext von bundle aus

This commit is contained in:
phil 2022-11-22 15:24:48 +01:00
parent a9c6185b64
commit 353e09edb7
2 changed files with 6 additions and 6 deletions

View file

@ -63,7 +63,7 @@
RAILS_ENV: production RAILS_ENV: production
- name: "database | Synchronisiere Locales" - name: "database | Synchronisiere Locales"
shell: rbenv exec rails r "Locale.sync" shell: rbenv exec bundle exec rails r "Locale.sync"
args: args:
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
become: true become: true
@ -72,7 +72,7 @@
RAILS_ENV: production RAILS_ENV: production
- name: "database | Synchronisiere Translations" - name: "database | Synchronisiere Translations"
shell: rbenv exec rails r "Translation.sync" shell: rbenv exec bundle exec rails r "Translation.sync"
args: args:
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
become: true become: true

View file

@ -42,7 +42,7 @@
- name: "elastic | Konfiguriere ES-Server-Adresse" - name: "elastic | Konfiguriere ES-Server-Adresse"
shell: shell:
cmd: rbenv exec rails r "Setting.set('es_url', 'http://127.0.0.1:9200')" cmd: rbenv exec bundle exec rails r "Setting.set('es_url', 'http://127.0.0.1:9200')"
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
environment: environment:
RAILS_ENV: production RAILS_ENV: production
@ -51,7 +51,7 @@
- name: "elastic | Erstelle Such-Index" - name: "elastic | Erstelle Such-Index"
shell: shell:
cmd: rbenv exec rake searchindex:rebuild cmd: rbenv exec bundle exec rake zammad:searchindex:rebuild
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
environment: environment:
RAILS_ENV: production RAILS_ENV: production
@ -60,7 +60,7 @@
- name: "elastic | Konfiguriere Datei-Erweiterungen" - name: "elastic | Konfiguriere Datei-Erweiterungen"
shell: shell:
cmd: rbenv exec rails r "Setting.set('es_attachment_ignore', [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ] )" cmd: rbenv exec bundle exec rails r "Setting.set('es_attachment_ignore', [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ] )"
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
environment: environment:
RAILS_ENV: production RAILS_ENV: production
@ -69,7 +69,7 @@
- name: "elastic | Konfiguriere Datei-Größen" - name: "elastic | Konfiguriere Datei-Größen"
shell: shell:
cmd: rbenv exec rails r "Setting.set('es_attachment_max_size_in_mb', {{ es_attachment_max_size }})" cmd: rbenv exec bundle exec rails r "Setting.set('es_attachment_max_size_in_mb', {{ es_attachment_max_size }})"
chdir: "{{ zammad_home }}" chdir: "{{ zammad_home }}"
environment: environment:
RAILS_ENV: production RAILS_ENV: production