Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Django management command to create a release #110

Open
kevinetienne opened this issue May 5, 2016 · 2 comments · May be fixed by #185
Open

Django management command to create a release #110

kevinetienne opened this issue May 5, 2016 · 2 comments · May be fixed by #185

Comments

@kevinetienne
Copy link

I have a management command for Django to create a release. It accepts a revision and a branch as arguments and take the organisation, app id and the bearer from environment variables.

Is this something which would get some interests? It does pretty much the same as the fabric version and could be handy for those not using fabric.

@beniwohli
Copy link
Member

Thanks for your interest in improving the Opbeat module, that's great! We discussed adding a management command like this for a long time, so we're definitely open to add it.

For getting the org/app IDs and the secret token, it would probably be better to just import a client object from opbeat.contrib.django.models and get the variables from there. That way, you get the correct values, no matter if they are configured via environment variables or Django settings.

    from opbeat.contrib.django.models import client
    org_id, app_id, token = client.organization_id, client.app_id, client.secret_token

@emyller
Copy link

emyller commented Dec 6, 2016

That would be very interesting! Currently, the Fabric-based model requires us to have the client codes hardcoded - unless we write some extra local configuration to cover multiple environments of an app on Opbeat (eg staging, production).
A management command would be excellent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants