Require app inside proc