zammad: Führe rails tasks im Kontext von bundle aus
This commit is contained in:
parent
a9c6185b64
commit
353e09edb7
2 changed files with 6 additions and 6 deletions
|
@ -63,7 +63,7 @@
|
|||
RAILS_ENV: production
|
||||
|
||||
- name: "database | Synchronisiere Locales"
|
||||
shell: rbenv exec rails r "Locale.sync"
|
||||
shell: rbenv exec bundle exec rails r "Locale.sync"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
|
@ -72,7 +72,7 @@
|
|||
RAILS_ENV: production
|
||||
|
||||
- name: "database | Synchronisiere Translations"
|
||||
shell: rbenv exec rails r "Translation.sync"
|
||||
shell: rbenv exec bundle exec rails r "Translation.sync"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
- name: "elastic | Konfiguriere ES-Server-Adresse"
|
||||
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 }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
- name: "elastic | Erstelle Such-Index"
|
||||
shell:
|
||||
cmd: rbenv exec rake searchindex:rebuild
|
||||
cmd: rbenv exec bundle exec rake zammad:searchindex:rebuild
|
||||
chdir: "{{ zammad_home }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
@ -60,7 +60,7 @@
|
|||
|
||||
- name: "elastic | Konfiguriere Datei-Erweiterungen"
|
||||
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 }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
@ -69,7 +69,7 @@
|
|||
|
||||
- name: "elastic | Konfiguriere Datei-Größen"
|
||||
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 }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
|
Loading…
Reference in a new issue