how to run ejabberd with Erlang on Heroku?

2019-06-02 06:31发布

问题:

I am trying to create a realtime private chat app running on ejabberd in Erlang. I am trying to install the same on Heroku. I am aware on how to run Erlang on Heroku but I don't know how to get ejabberd running on Heroku for my application. I am completely new in developing realtime chat app but I am thinking to make it scalable. Please anyone can tell me how to do this. Thanks.

回答1:

Assuming that you are using source code form github.

After compiling with

./autogen.sh
./configure
make rel

there should be rel/ejabberd/bin/ejabberdctl executable, and adding

web: ./rel/ejabberd/bin/ejabberdctl start

to your Procfile should be enough to start the server.