create app init and app reinit rake task