I'm trying to deploy on AWS Elastic Beanstalk. My project has a structure where Django settings is in the settings folder:
|projeto
|--settings
|----settings.py
It contains the configuration as:
RAVEN_CONFIG = {
'dsn': 'https://----------:[email protected]/------',
'release': raven.fetch_git_sha(os.path.dirname(os.pardir)),
}
I believe the error is in the release line, I've already changed it anyway, tried with 2 levels above, tried everything and it returns error that did not identify git repository ).
File "/opt/python/run/venv/local/lib/python3.4/site-packages/raven/versioning.py", line 25, in fetch_git_sha
'Cannot identify HEAD for git repository at %s' % (path,))
raven.exceptions.InvalidGitRepository: Cannot identify HEAD for git repository at.
Because of this error I can not make sentry run in Elastic Beanstalk. I also tried with the template that they have in the tutorial with wsgi calling Sentry. It also gives the same error. Probably because config is valid for any installation method used.