set env for config if no rails available