magnet-cl / django-project-template

A project template for Django in python 3
MIT License
14 stars 8 forks source link

Test on production deploy #106

Open taandrighetti opened 3 years ago

taandrighetti commented 3 years ago

Runs Django tests when deploying to production, and stops if they fail.

It would have been nice to select this behavior with a flag in inventory for each host. But it works with a single host only, because it would fail when deploying to two servers which are on different branches. So the host is hardcoded to production.