Ruby God: Run script to fill database before service start
|Added at||2016-12-20 12:12|
I am setting up a sinatra app along with god to monitor the process. I need to run a script before the service starts which ensure that all the collections have required values for starting the app.
The script simply upserts the value into the mongodb. Is there a way through god I can run that script everytime the god is initialized and not setup process monitoring on the same.