Skip to content

Instantly share code, notes, and snippets.

@pooza
Created November 2, 2018 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pooza/59f44fecabff3467b2c014d39beac574 to your computer and use it in GitHub Desktop.
Save pooza/59f44fecabff3467b2c014d39beac574 to your computer and use it in GitHub Desktop.
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