I am trying to run my rails server
and slackbot
in two processes using Procfile
and gem 'foreman'
.
But when I use foreman start
the bot is only running the server is not starting up. I tried removing the line bot and tried to run web only but in that case, also my server is not starting up it just shows started with pid 1502
. But when I start it from another terminal with rails s
it starts up with no problem. I have googled a lot and can't seem to find out a solution for this. Help is much appreciated. Thanks.
This is my Procfile :
web: bundle exec rails server -p $PORT
bot: rails runner -e development slackbot/slack.rb