Skip to content

Instantly share code, notes, and snippets.

@pooza pooza/growi.god
Created Nov 2, 2018

Embed
What would you like to do?
God.watch do |god|
god.name = 'growi'
god.env = {
'NODE_ENV' => 'production',
'MONGO_URI' => 'mongodb://localhost:27017/growi',
'PORT' => '3012',
}
god.dir = '/home/growi/growi'
god.uid = 'growi'
god.start = 'node /home/growi/growi/src/server/app.js'
god.stop = "kill `ps aux|grep /home/growi/growi|head -n 1|awk '{print $2}'`"
god.log_cmd = 'logger -t growi'
god.keepalive
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.