I was interested in Supervisor because I wanted to run the mispy/twitter_ebooks repo for building some twitter bots. It gives you a great command line interface for both creating new bots (
ebooks new <reponame>) and starting the bots (
For whatever reason you can’t just point Supervisor at a directory and call that command. You’ll need to find where the gem wrapper is located and run the command from there.
First find the path of the executable gem:
For me it was located here:
Then we can switch the
/bin/ dir to the
/wrappers/ dir which is the packaged file you will tell Supervisor to run.
In Supervisor the .conf file should now look like this:
Now Supervisor should have no problems keeping your twitter bots alive and tweeting.