Sha256: 8b63478019d5c19b10d7dfa36edadc9e6856894c52df2ee9a1023ef5636dfad0

Contents?: true

Size: 387 Bytes

Versions: 17

Compression:

Stored size: 387 Bytes

Contents

- name: stop unicorns
  service: name=unicorn_{{app_name}} state=stopped

- 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
  service: name=unicorn_{{app_name}} state=started

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
taperole-1.2.8 roles/database_load/tasks/db_reset.yml
taperole-1.2.7 roles/database_load/tasks/db_reset.yml
taperole-1.2.6 roles/database_load/tasks/db_reset.yml
taperole-1.2.5 roles/database_load/tasks/db_reset.yml
taperole-1.2.4 roles/database_load/tasks/db_reset.yml
taperole-1.2.3 roles/database_load/tasks/db_reset.yml
taperole-1.2.2 roles/database_load/tasks/db_reset.yml
taperole-1.2.1 roles/database_load/tasks/db_reset.yml
taperole-1.2.0 roles/database_load/tasks/db_reset.yml
taperole-1.1.5 roles/database_load/tasks/db_reset.yml
taperole-1.1.4 roles/database_load/tasks/db_reset.yml
taperole-1.1.3 roles/database_load/tasks/db_reset.yml
taperole-1.1.2 roles/database_load/tasks/db_reset.yml
taperole-1.1.1 roles/database_load/tasks/db_reset.yml
taperole-1.1.0 roles/database_load/tasks/db_reset.yml
taperole-1.0.1 roles/database_load/tasks/db_reset.yml
taperole-1.0.0 roles/database_load/tasks/db_reset.yml