Sha256: 7ecb3ff26fb81e03d517d2bbda88c2904050f536614336422e9be5ea2f61dfe6

Contents?: true

Size: 362 Bytes

Versions: 20

Compression:

Stored size: 362 Bytes

Contents

- name: stop everything
  command: bash -lc "monit stop all"

- name: Reset DB
  command: chdir={{ be_app_path }}
           bash -lc "bundle exec rake db:drop db:create RAILS_ENV={{be_app_env}}"
  register: db_reset

- name: DB Reset Failed
  fail: msg="{{db_reset.stderr}}"
  when: db_reset.stderr

- name: start unicorns
  command: bash -lc "monit start all"

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
taperole-1.7.1 roles/database_load/tasks/db_reset.yml
taperole-1.7.0 roles/database_load/tasks/db_reset.yml
taperole-1.6.0 roles/database_load/tasks/db_reset.yml
taperole-1.5.5 roles/database_load/tasks/db_reset.yml
taperole-1.5.4 roles/database_load/tasks/db_reset.yml
taperole-1.5.3 roles/database_load/tasks/db_reset.yml
taperole-1.5.2 roles/database_load/tasks/db_reset.yml
taperole-1.5.1 roles/database_load/tasks/db_reset.yml
taperole-1.5.0 roles/database_load/tasks/db_reset.yml
taperole-1.4.3 roles/database_load/tasks/db_reset.yml
taperole-1.4.2 roles/database_load/tasks/db_reset.yml
taperole-1.4.1 roles/database_load/tasks/db_reset.yml
taperole-1.4.0 roles/database_load/tasks/db_reset.yml
taperole-1.3.6 roles/database_load/tasks/db_reset.yml
taperole-1.3.5 roles/database_load/tasks/db_reset.yml
taperole-1.3.4 roles/database_load/tasks/db_reset.yml
taperole-1.3.3 roles/database_load/tasks/db_reset.yml
taperole-1.3.2 roles/database_load/tasks/db_reset.yml
taperole-1.3.1 roles/database_load/tasks/db_reset.yml
taperole-1.3.0 roles/database_load/tasks/db_reset.yml