3 ms·
can you an example of those kinds of safeguards? asking for a friend :)
by vinniepukh 3y ago
can you an example of those kinds of safeguards? asking for a friend :)
- conceptme 3y agoNot letting devs access production :)
- renegade-otter 3y agoI think one thing is to make sure that when your test suite executes - you should force environment to "TEST" programmatically, before any bootstrapping code even runs. So even if you allow for connection to production (sometimes that's allowed for debugging hard-to-reproduce issues), you want to remove any room for human error. And your code should obviously NEVER be able to connect to anything other than the local test DB when your environment is set to "TEST".