Commits

Mikhail Korobov committed b6ffa67

Issue syncdb && migrate on deployment

  • Participants
  • Parent commits a7673f5

Comments (0)

Files changed (2)

File docs/guide.rst

 3. If you feel brave you can now run ``fab full_deploy`` from the project root
    and get a working django site.
 
-   Necessary system and python packages will be installed, apache and ngnix
-   will be configured, virtualenv will be created and the project will be
-   uploaded to the server.
+   This command:
+
+   * installs necessary system and python packages
+   * configures apache and ngnix
+   * creates virtualenv
+   * uploads project to the server
+   * runs ``python manage.py syncdb`` and ``python manage.py migrate`` commands
+     on server
 
    Project sources will be available under ``~/src/<instance_name>``, virtualenv
    will be placed in ``~/envs/<instance_name>``.

File fab_deploy/deploy.py

     setup_web_server()
     update_django_config()
 
+    syncdb()
+    migrate()
+
 
 def make_clone():
     with cd('src'):