Unexpected Behavior From Popen Once Web App Is Deployed With Apache
I have some code that uses subprocess to look at the logs from a git directory. My code seems to work fine when executed in a local django dev environment. Once deployed however
Solution 1:
- Chain your
chdir
as part of your command (ie,cd /foo/bar/zoo
) - Pass the full path to
git
So your command would end up cd /foo/bar/zoo && /usr/bin/git log --since
Post a Comment for "Unexpected Behavior From Popen Once Web App Is Deployed With Apache"