Setze Env-Variablen explizit
This commit is contained in:
parent
03d94a2c6f
commit
21bec868ea
2 changed files with 15 additions and 5 deletions
|
@ -35,31 +35,39 @@
|
||||||
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
||||||
|
|
||||||
- name: "database: Befülle Datenbank"
|
- name: "database: Befülle Datenbank"
|
||||||
shell: "RAILS_ENV=production rbenv exec bundle exec rake db:create"
|
shell: "rbenv exec bundle exec rake db:create"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
when: database_created.changed
|
when: database_created.changed
|
||||||
|
|
||||||
- name: "database: Führe Migrationen aus"
|
- name: "database: Führe Migrationen aus"
|
||||||
shell: "RAILS_ENV=production rbenv exec bundle exec rake db:migrate"
|
shell: "rbenv exec bundle exec rake db:migrate"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
|
||||||
- name: "database: Führe Seeds aus"
|
- name: "database: Führe Seeds aus"
|
||||||
shell: "RAILS_ENV=production rbenv exec bundle exec rake db:seed"
|
shell: "rbenv exec bundle exec rake db:seed"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
when: database_created.changed
|
when: database_created.changed
|
||||||
|
|
||||||
- name: "database: Precompile Assets"
|
- name: "database: Precompile Assets"
|
||||||
shell: "RAILS_ENV=production rbenv exec bundle exec rake assets:precompile"
|
shell: "rbenv exec bundle exec rake assets:precompile"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
|
|
@ -36,8 +36,10 @@
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
|
||||||
- name: "ruby: Ruby-Abhängigkeiten installieren"
|
- name: "ruby: Ruby-Abhängigkeiten installieren"
|
||||||
shell: "RAILS_ENV=production rbenv exec bundle install --without test development mysql"
|
shell: "rbenv exec bundle install --without test development mysql"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
|
|
Loading…
Reference in a new issue