At present api/knexfile.js contains the way to switch between different environments: development, testing and production.
For #7 we'll want to add different email server details for each environment too (I think each developer will have their own email username and password, which would be set in .env) so we'll want something more generalised rather than just in the database code.