This might be helpful:

    export $(cat .env | xargs) && rails c

Reason why I use this is if I want to test `.env` stuff in my rails console.