I’d like for a ruby server script that lives in my rails app root folder to accept connections from clients (the clients are not browsers–not that this really matters i guess) and update the db of my rails app while my rails app is running. Therefore, I’d like for it to be told somehow to start running whenever my web server starts serving up my rails app and stop running whenever my web server stops serving my rails app. How can I do this? Is this as simple as putting the name/path of my ruby server script somewhere?
Share
You should look into Foreman, a gem specifically for launching multiple processes in your server environment.