问题
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.
来源:https://stackoverflow.com/questions/26979875/how-to-run-ejabberd-with-erlang-on-heroku