Skip to content

Commit

Permalink
syncdb on repo update
Browse files Browse the repository at this point in the history
  • Loading branch information
fdavis committed Jun 23, 2013
1 parent 8917c53 commit ac84853
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/django/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

- name: service uwsgi start/enable
service: name=uwsgi state=restarted enabled=yes

- name: django syncdb
command: chdir=/opt/mysite/mysite python manage.py syncdb
4 changes: 3 additions & 1 deletion roles/django/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

- name: get the webapp
git: repo=git://github.com/fdavis/django-site.git force=yes dest=/opt/mysite
notify: service uwsgi start/enable
notify:
- service uwsgi start/enable
- django syncdb
tags:
- gitpull

Expand Down

0 comments on commit ac84853

Please sign in to comment.