|
|
|
|
|
|
|
|
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:create db:migrate |
|
|
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:create db:migrate |
|
|
- runas: {{ diaspora.user.username }} |
|
|
- runas: {{ diaspora.user.username }} |
|
|
- cwd: {{ diaspora.install_path }} |
|
|
- cwd: {{ diaspora.install_path }} |
|
|
- onlyif: bash -c 'cd {{ diaspora.install_path }}; RAILS_ENV={{ environment }} rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rails runner "ActiveRecord::Base.connection" |& grep "database \"{{ diaspora.database.database }}\" does not exist (ActiveRecord::NoDatabaseError)"' |
|
|
|
|
|
|
|
|
- onlyif: >- |
|
|
|
|
|
bash -c 'cd {{ diaspora.install_path }}; RAILS_ENV={{ environment }} |
|
|
|
|
|
rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rails runner "ActiveRecord::Base.connection" |
|
|
|
|
|
|& grep "database \"{{ diaspora.database.database }}\" does not exist (ActiveRecord::NoDatabaseError)"' |
|
|
- env: |
|
|
- env: |
|
|
- RAILS_ENV: {{ environment }} |
|
|
- RAILS_ENV: {{ environment }} |
|
|
- require: |
|
|
- require: |
|
|
|
|
|
|
|
|
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:migrate |
|
|
- name: rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:migrate |
|
|
- runas: {{ diaspora.user.username }} |
|
|
- runas: {{ diaspora.user.username }} |
|
|
- cwd: {{ diaspora.install_path }} |
|
|
- cwd: {{ diaspora.install_path }} |
|
|
- onlyif: bash -c 'cd {{ diaspora.install_path }}; RAILS_ENV={{ environment }} rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:migrate:status | grep -oE "^\s+down"' |
|
|
|
|
|
|
|
|
- onlyif: >- |
|
|
|
|
|
bash -c 'cd {{ diaspora.install_path }}; RAILS_ENV={{ environment }} |
|
|
|
|
|
rvm ruby-{{ diaspora.ruby_version }}@diaspora do bin/rake db:migrate:status | grep -oE "^\s+down"' |
|
|
- env: |
|
|
- env: |
|
|
- RAILS_ENV: {{ environment }} |
|
|
- RAILS_ENV: {{ environment }} |
|
|
- require: |
|
|
- require: |