run->edit configurations,

设置On ‘Update’ action为Redeploy。

设置On frame deactivation为Update resourcees。