Friday, March 27, 2015

Manage.py not found when deploying using chef (application_python cookbook)

I'm trying to deploy a django application on ec2 using chef. I followed blogs that got me to the point where the application(_python) cookbook has setup a clone of the repo to shared-copy and the chef client invokes the first command to syncdb. Then however a problem occurs that is easy to explain: manage.py cannot be found and the reason is because manage.py is not in the tip of the repo, it is in fact two levels lower.

I'm wondering what the best approach is to solve this;
- Can i change the cwd that the application cookbook uses?
- Symlink manage.py?
- Wrap manage somehow?

Thanks for any tips,
Paul Bormans

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2ba07b14-8a8f-4e3c-a261-aad1015da932%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment