Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

syncdb/migrate as post-staging

  • Loading branch information...
commit d6bfbe1de8969ccd899f424b369f2f6619fb6570 1 parent c838cd2
@srid srid authored
Showing with 6 additions and 5 deletions.
  1. +0 −5 README.md
  2. +6 −0 stackato.yml
View
5 README.md
@@ -16,12 +16,7 @@ the Django admin URL at ``http://gtd.stackato.local/admin/``.
Push to the cloud, and then initialize the database:
stackato push -n
- stackato run python manage.py syncdb # prompts for admin password
- stackato run python manage.py migrate
-NOTE: if you get a postgres DatabaseError ``terminating connection due
-to administrator command``, simply re-run the previous command.
-
Visit http://gtd.stackato.local/ to see the list of tasks. Visit http://gtd.stackato.local/admin/ to modify tasks, projects and contexts.
## Want to use MySQL?
View
6 stackato.yml
@@ -12,6 +12,12 @@ requirements:
services:
postgresql: postgresql-gtd
+hooks:
+ post-staging:
+ - python manage.py syncdb --noinput
+ - python manage.py migrate
+ - echo "Run 'stackato run python manage.py createsuperuser' to create an admin user"
+
ignores:
- .git
- dev.db
Please sign in to comment.
Something went wrong with that request. Please try again.