Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check version control status and common Django errors #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vsalvino
Copy link
Contributor

To help eliminate common foot-guns, and improve the developer experience, we are adding a set of new checks to help prevent accidental deployment errors.

On the check, deploy, and upload commands, run a set of new "predeploy" checks which includes:

  • Check if the git branch matches the deployment environment (staging/prod).
  • Check if there are un-committed or un-pushed changes.
  • Run manage.py check
  • Run manage.py makemigrations --check.

These can be disabled by using the --skip-predeploy argument.

Additionally, in non-interactive environments (i.e. CI/CD pipelines), cr will automatically continue or cancel based on the severity of the check that has failed.

Fixes #12

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

Successfully merging this pull request may close these issues.

cr check - run common checks before deploying
1 participant