Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 821 Bytes

DEBUGGING.md

File metadata and controls

49 lines (32 loc) · 821 Bytes

Debugging

Locally

You can debug your instance of slack-gamebot with a built-in console.

$ ./script/console

2.3.1 :001 > Game.map(&:name)
=> ['pong', 'pool']

Silence Mongoid Logger

If Mongoid logging is annoying you.

Mongoid.logger.level = Logger::INFO
Mongo::Logger.logger.level = Logger::INFO

Heroku

heroku run script/console --app=...

Running `script/console` attached to terminal... up, run.7593

2.2.1 > Game.count
=> 3

2.2.1 > Game.last
=> #<Game _id: 55c8f7da276eaa0003000000, ...>

Dokku

$ gem install dokku-cli

$ git remote add dokku [email protected]:game-bot

$ dokku run script/console
Running ssh -t -p 22 [email protected] run game-bot script/console...

irb(main):001:0> Team.count
=> 668