diff --git a/.env.example b/.env.example index 56075093..2ba46219 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ +DATABASE= RAILS_ENV= IMAP_SERVER= DEFAULT_FROM= diff --git a/config/database.yml b/config/database.yml index 28e195b8..7989a013 100644 --- a/config/database.yml +++ b/config/database.yml @@ -23,7 +23,7 @@ test: production: adapter: postgresql pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> - database: sutty + database: <%= ENV.fetch('DATABASE') { 'sutty' } %> user: sutty host: postgresql encoding: unicode