Skip to content

Commit

Permalink
Update django-gtd and mezzanine to use stackato ssh for syncdb.
Browse files Browse the repository at this point in the history
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
Sridhar Ratnakumar committed Jan 17, 2012
1 parent 3a72ace commit 0d3f2eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
django
psycopg2
south
django-stackato
1 change: 0 additions & 1 deletion settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
'django.contrib.humanize',
'gtd',
'south',
'django_stackato',
)

# try:
Expand Down
7 changes: 0 additions & 7 deletions stackato.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0d3f2eb

Please sign in to comment.