Skip to content

Instantly share code, notes, and snippets.

@akito0190
Last active December 28, 2018 02:21
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 akito0190/25ea97c806c1dcd88befc2174a0f36de to your computer and use it in GitHub Desktop.
Save akito0190/25ea97c806c1dcd88befc2174a0f36de to your computer and use it in GitHub Desktop.
config_host = ['127.0.0.1:27019']
db = {:database => 'config'}
client = Mongo::Client.new(config_host, db)
client['settings'].update_one({_id: 'balancer'}, { :$set => { stopped: false } } , { upsert: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment