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)"
|
||||
|
||||
- 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:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
when: database_created.changed
|
||||
|
||||
- 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:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
||||
- 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:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
when: database_created.changed
|
||||
|
||||
- name: "database: Precompile Assets"
|
||||
shell: "RAILS_ENV=production rbenv exec bundle exec rake assets:precompile"
|
||||
shell: "rbenv exec bundle exec rake assets:precompile"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
|
|
@ -36,8 +36,10 @@
|
|||
become_user: "{{ zammad_user }}"
|
||||
|
||||
- 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:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
|
Loading…
Reference in a new issue