Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update django-gtd and mezzanine to use `stackato ssh` for syncdb.

This works only for v0.8.x VM and above. Previously we had to run syncdb
with --noinput, and hack around changepassword (in django-stackato) to
access password from command argument. All of this is not required for
v0.8 as `stackato run` now uses SSH like real men.
  • Loading branch information...
commit 0d3f2eb4b68618b19f751ad619eda0ceac799e11 1 parent 3a72ace
@srid srid authored
Showing with 9 additions and 14 deletions.
  1. +9 −5 README.md
  2. +0 −1  requirements.txt
  3. +0 −1  settings.py
  4. +0 −7 stackato.yml
View
14 README.md
@@ -13,13 +13,17 @@ the Django admin URL at ``http://gtd.stackato.local/admin/``.
## Deploying to Stackato
-First, change the admin password in ``stackato.yml`` to a non-default value:
-
- vi stackato.yml # replace 'secret123' with your password
-
-Then, push to the cloud:
+Push to the cloud:
stackato push -n
+
+Initialize database tables and create a superuser:
+
+ 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.
View
1  requirements.txt
@@ -1,4 +1,3 @@
django
psycopg2
south
-django-stackato
View
1  settings.py
@@ -119,7 +119,6 @@
'django.contrib.humanize',
'gtd',
'south',
- 'django_stackato',
)
# try:
View
7 stackato.yml
@@ -5,13 +5,6 @@ mem: 64M
env:
DJANGO_SETTINGS_MODULE: settings
-hooks:
- post-staging:
- - python manage.py syncdb --noinput
- - python manage.py migrate --noinput
- - python manage.py createsuperuser --username=admin --email=admin@mydomain.com --noinput
- - python manage.py changepassword2 admin secret123
-
services:
postgresql: postgresql-gtd
Please sign in to comment.
Something went wrong with that request. Please try again.