Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法运行zeus start,宙斯不仅会启动rails,还会启动redis?
zeus start
我会这样做custom_plan.rb,CustomPlan#boot但我不知道如何从这里开始 redis。
custom_plan.rb
CustomPlan#boot
您可以通过以下方式在 custom_pan.rb 的 def boot 中简单地运行系统命令:
exec(src/redis-server)
或者如果您已将 redis 作为服务安装
exec(service redis start)