Application to view your development and production logs in the browser.
For every request made by client side following things takes place :-
- Logs Controller renders last 10 lines of the log file
- It calls a background job BrodcastJob.
- BroadcastJob opens a websocket connection on development/test/production channel to client using ActionCable.
- Updating file content gets appended to the rendered web page using logs.coffee script.
- Clone the repository
git clone https://github.com/aarushverma96/LogViewer.git
- Use bundler to install the gems required
bundle install
- Start background workers for resque
PIDFILE=./resque.pid BACKGROUND=yes QUEUE="*" COUNT=4 RAILS_ENV=development rake resque:work >> resque.log
- Start redis server
redis-server
- Start rails server
rails server