8
我为某些后台进程使用Sidekiq。在开发环境中使用rails服务器启动Sidekiq
目前我做的是:
一个终端上开始bundle exec rails s
,然后不同的终端上开始bundle exec sidekiq
使得sidekiq自行启动和找工作要处理。
我要的是:
只要我开始bundle exec rails s
也应该开始sidekiq bundle exec sidekiq
。我怎样才能把它整合在开发环境?