Don't call createdb
authorLorin Hochstein <lhochstein@netflix.com>
Sat, 24 Dec 2016 04:55:24 +0000 (20:55 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Sat, 24 Dec 2016 04:55:24 +0000 (20:55 -0800)
ch06/playbooks/mezzanine.yml

index ec1a7f3..451bf1c 100644 (file)
         - psycopg2
         - django-compressor
         - python-memcached
-    - name: sync the database, apply migrations, collect static content
+    - name: apply migrations to create the database, collect static content
       django_manage:
         command: "{{ item }}"
         app_path: "{{ proj_path }}"
         virtualenv: "{{ venv_path }}"
       with_items:
-        - createdb --noinput --nodata
-        - collectstatic
         - migrate
+        - collectstatic
     - name: set the site id
       script: scripts/setsite.py
       environment: