Skip to content

Instantly share code, notes, and snippets.

@grzegorzblaszczyk
Created June 29, 2014 21:45
Show Gist options
  • Save grzegorzblaszczyk/8c877d5e999f124b9de1 to your computer and use it in GitHub Desktop.
Save grzegorzblaszczyk/8c877d5e999f124b9de1 to your computer and use it in GitHub Desktop.
#!/bin/bash
TAIL=`which tail`
APP="app"
NGINX_ACCESS_LOG_FILE="/opt/nginx-${APP}/logs/access.log"
NGINX_ERROR_LOG_FILE="/opt/nginx-${APP}/logs/error.log"
RAILS_LOG="${HOME}/current/log/staging.log"
$TAIL -f $NGINX_ACCESS_LOG_FILE $NGINX_ERROR_LOG_FILE $RAILS_LOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment