0

I created a django app on openshift successfully. But, I'm not able to run syncdb using the following deploy hook.

#!/bin/bash
source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate
cd $OPENSHIFT_REPO_DIR/wsgi/$OPENSHIFT_APP_NAME
python manage.py syncdb --noinput

What could be wrong? Please help!

Amanpreet Singh
  • 178
  • 1
  • 9
  • Is there any output? errors? – twil Nov 10 '13 at 00:21
  • Nothing as such. When I try to open admin page, it gives error that table does not exist. Here's the link http://greypic-sids.rhcloud.com/admin/ – Amanpreet Singh Nov 10 '13 at 03:54
  • I meen errors during `git push`. The only difference with [example django app](https://github.com/openshift/django-example/blob/master/.openshift/action_hooks/deploy) is they do `source $OPENSHIFT_HOMEDIR/python/virtenv/bin/activate`. Are you sure virtualenv path is correct? – twil Nov 10 '13 at 08:55
  • No errors during git push. I've tried replacing `python-2.6` with `python` as well. So, path is correct. – Amanpreet Singh Nov 10 '13 at 14:05
  • I SSHed and ran these commands manually and it works fine. – Amanpreet Singh Nov 10 '13 at 16:07

1 Answers1

0

I think its simply because you forget to add the right for file execution with chmod +x filename

Sir l33tname
  • 4,026
  • 6
  • 38
  • 49