Question: Ruby God: Run script to fill database before service start

Question

Ruby God: Run script to fill database before service start

Answers 0
Added at 2016-12-20 12:12
Tags
Question

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.

Answers
Source Show
◀ Wstecz