Source

fabulator / src / fabfile.py

Diff from to

src/fabfile.py

                 run("kill -HUP `head -1 %s`" % pidfile)
             else:
                 with cd(django.get('src_dir')):
-                    run("%s/gunicorn_django --workers=%d --port=%d --pid=%s --log-file=%s -D" % \
+                    run("%s/gunicorn_django --workers=%d --bind=127.0.0.1:%d --pid=%s --log-file=%s -D" % \
                             (conf.get('path'), conf.get('workers'),
                              port, pidfile, conf.get('logfile')))
 
     venv = env.yaml.get("virtualenv")
     
     mysql.create_database(conf)
-    south.install_south(env)
+    if django.get('south'):
+        south.install_south(env)
     
     with cd("%(src_dir)s" % django):
-        run("%(bin_dir)s/python manage.py migrate --all" % venv)
+        if django.get('south'):
+            run("%(bin_dir)s/python manage.py migrate --all" % venv)
+        else:
+            run("%(bin_dir)s/python manage.py syncdb --noinput" % venv)
 
 
 @Permissions("sudo_user", env)