Modified Deploy script:
 * Custom errors will be enabled only when WebUI is deployed