Add APP_ENV

This commit is contained in:
Joel Van Horn 2020-07-09 13:47:41 -04:00 committed by GitHub
parent 12c904161a
commit 9bc66d6c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,7 +323,7 @@ After copying and pasting code to do this several times I decided to package it
DatabaseCleaner comes with safeguards against: DatabaseCleaner comes with safeguards against:
* Running in production (checking for `ENV`, `RACK_ENV`, and `RAILS_ENV`) * Running in production (checking for `ENV`, `APP_ENV`, `RACK_ENV`, and `RAILS_ENV`)
* Running against a remote database (checking for a `DATABASE_URL` that does not include `localhost`, `.local` or `127.0.0.1`) * Running against a remote database (checking for a `DATABASE_URL` that does not include `localhost`, `.local` or `127.0.0.1`)
Both safeguards can be disabled separately as follows. Both safeguards can be disabled separately as follows.