Run Two Programs Off The Same Procfile

前端 未结 1 336
一生所求
一生所求 2021-01-28 16:11

I have 2 discord bot programs, one is python code and the other is nodejs. I was wondering if in the procfile, like when you say worker: python ___, is there a way so that it ru

相关标签:
1条回答
  • 2021-01-28 16:59

    Instead of your Procfile being:

    worker: python log.py
    worker: node bot.js
    

    You do:

    worker: python log.py & node bot.js & wait -n
    

    see: https://help.heroku.com/CTFS2TJK/how-do-i-run-multiple-processes-on-a-dyno

    0 讨论(0)
提交回复
热议问题