resolve promise if app is hosted