0
私はいくつかのすくいタスクを実行ゼウスカスタム計画、このようなものを持っている:Rails Springの設定はZeusのように似ていますか?
require 'zeus/rails'
class CustomPlan < Zeus::Rails
def rots
`bundle exec rots 1> log/rots.log &`
end
def stripe_mock
`bundle exec stripe-mock-server 1> log/stripe-mock-server.log &`
end
end
Zeus.plan = CustomPlan.new
ゼウスの設定:
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"console": ["c"]
},
"test_environment": {
"test_helper": {"test": ["rspec"]}
}
},
"rots": {},
"stripe_mock": {}
}
}
}
そして私は、このリンクが見つかりました:https://github.com/rails/spring#configurationを、私はしないでくださいカスタムレイクタスクをどのように実行して停止できるかを正確に理解しています。
私はそれをこのような何かしてみてください:これは動作しますが、私はspring stop
で春を停止すると、stripe-mock-server
がシャットダウンされていない
class CustomPlan
def initialize
`bundle exec rots 1> log/rots.log &`
`bundle exec stripe-mock-server 1> log/stripe-mock-server.log &`
end
end
CustomPlan.new
を。
春にカスタムレーキを実行したり停止したりするための巧妙なソリューションですか?私はこの瞬間のために思い付いたものを
おかげ