threadhead / sinatra-tailer

Sinatra based app to view and monitor log files

This URL has Read+Write access

threadhead (author)
Thu Mar 26 11:47:21 -0700 2009
commit  b454fcaf80870364a1a964bf435bee143f5aa776
tree    33b544b90ba84636be43b898f9f451e3c68b5b1f
parent  e591a3c41c39bbcf46dd8e8224393c840d4f9c83
sinatra-tailer / README.rdoc
100644 79 lines (45 sloc) 1.861 kb

Sinatra-Tailer

A sinatra application to view log files, or any text file, on your local computer or server. Auto-updates so you can watch the changes.

Features

  • runs under rack, so you can host it the way you want it.
  • easy configuration, just edit a single yaml file.
  • supports file globs

Download

The latest version of sinatra-tailer can be found at

Requirements

sinatra framework (tested on 0.9.1.1, earlier may work)

  sudo gem install sinatra

Installation

  1. git clone git://github.com/threadhead/sinatra-tailer.git
  2. cd sinatra-tailer
  3. cp config/logs.example.yml config/logs.yml
  4. mate config/logs.yml

PassengerPane

If you are using PassengerPane, you can drag the sinatra-tailer directory into the PassengerPane window. Set your alias and you are ready to go.

Apache

You can use the following vhost config:

  <VirtualHost *:80>
    DocumentRoot "/path/to/sinatra-tailer/public"
    RackEnv production
    <directory "/path/to/src/sinatra-railer/public">
      Order allow,deny
      Allow from all
    </directory>
  </VirtualHost>

Or, if you prefer to have it run on a separate port (my favorite method):

NameVirtualHost *:4444

  <VirtualHost *:4444>
     DocumentRoot /path/to/sinatra-tailer/public
     RackEnv production
     <directory /path/to/sinatra-tailer/public>
        Order allow,deny
        Allow from all
     </directory>
  </VirtualHost>

Local

Or if your prefer, you can run this as a pure rack application and view it at localhost:9292:

  rackup config.ru

License

This package is licensed under the MIT license and/or the Creative Commons Attribution-ShareAlike.