开发者

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

开发者 https://www.devze.com 2023-01-17 13:28 出处:网络
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

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

精彩评论

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