Use app.settings.env

Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>