Thursday, July 29, 2010

dumpdata/loaddata through ssh

$ ./manage.py dumpdata some_app | ssh prgmr "cat | /srv/proj/manage.py
loaddata"

I'm trying to send fixtures over to my production server. Is there a
one liner that can do this without creating an intermediate file? The
above code doesn't seem to work. I get "No fixtures found" returned.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment