How to share worker among two different applications on heroku?

前端 未结 3 1642
名媛妹妹
名媛妹妹 2021-02-09 00:21

I have two separate applications running on heroku and pointing to same database, first one responsible for user interfaceand second one for admin interface

3条回答
  •  野性不改
    2021-02-09 00:43

    How about using 3 different heroku apps?

    1. User Interface App (ui repository)
      • web: bundle exec rails server
    2. Admin Interface App (admin repository)
      • web: bundle exec rails server
    3. Worker (admin repository)
      • worker: bundle exec sidekiq (documentation)

    Even if 2 and 3 use the same code base, you can have 2 different heroku apps. One that starts the admin, one that actually starts sidekiq. Would that solve your problem?

提交回复
热议问题