prepares app for deployment