diff --git a/.env.example b/.env.example index 5607509..2ba4621 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 28e195b..7989a01 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