Use environment variables to configure database and mail.
Configure production environment.
Add Procfile.
Fixed config setting.
Also set database user and password from environment variables.
Use correct config name.
Add basic authentication.
Activate email plugin.