Skip to content

Commands and Fixes

Alf edited this page Jul 29, 2014 · 9 revisions

Some common commands and fixes used throughout the app.

Inspecting Celery queues

celery inspect scheduled --app=app.tasks

http://celery.readthedocs.org/en/latest/userguide/monitoring.html#management-command-line-utilities-inspect-control

WEBrick long request fix

Sometimes when running ScoutRealtime behind a firewall, the requests might take ~5s each. This causes some delays in the realtime monitoring.

vim /home/alf/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/webrick/config.rb

Update :DoNotReverseLookup => nil, to :DoNotReverseLookup => true,

scout_realtime stop
scout_realtime start

http://stackoverflow.com/questions/1156759/webrick-is-very-slow-to-respond-how-to-speed-it-up

Setting SuperUser on a virtual server

sudo /usr/sbin/murmurd -ini /etc/mumble-server.ini -supw [password] [id]

This will create a SuperUser password for the virtual server ID. If none is given, 1 will be used.

This also sets the password without having to restart the server.

Database Migrations

Refer to http://blog.miguelgrinberg.com/post/flask-migrate-alembic-database-migration-wrapper-for-flask as a user guide for a general idea on migrations.

Clone this wiki locally