setupApllication APP_DIR variable used