Skip to content

Instantly share code, notes, and snippets.

@pooza
Last active January 21, 2019 06:32
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/d4d6ca5cbf21ea5eb1e8516837aacd96 to your computer and use it in GitHub Desktop.
Save pooza/d4d6ca5cbf21ea5eb1e8516837aacd96 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',
'FILE_UPLOAD' => 'local',
'EIO_WS_ENGINE' => 'ws',
}
god.dir = '/home/pooza/growi'
god.uid = 'pooza'
god.start = 'node /home/pooza/growi/src/server/app.js'
god.stop = 'pkill -f /home/pooza/growi'
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