开发者

How I can call specified first app's rake task from second one

How can I开发者_StackOverflow中文版 call specified 1st app's rake task from second one.

Case: User on baseapp.com (RoR), fills up the reg.form BaseApp validates and stores data Than, with delayed_job/resque I should call subapp's rake db:bootstrap FORM_PARAM1 FORM_PARAM2 ... FORM_PARAM3


You need define the Rakefile you want load to your rake execution

rake -f my_dir_1/Rakefile my_task
rake -f my_dir_2/Rakefile my_task_2
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜