Models and Components config and setting env in app