Last active
          August 29, 2015 13:57 
        
      - 
      
- 
        Save porty/9821917 to your computer and use it in GitHub Desktop. 
    Contests .bash_aliases
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # tail the apache logs without other cruft | |
| alias log1="tail -f /var/log/apache2/error.log | egrep -v --line-buffered '(CSRF|Load existing customer|rotatelogs|Could not open log file)'" | |
| # tail contests logs | |
| alias log2="sudo supervisorctl tail -f contests-worker-dev" | |
| # tail commerce logs | |
| alias log3="sudo supervisorctl tail -f commerce-worker-dev" | |
| # start the things that didn't start automatically | |
| # also, create/chown files that would otherwise not be created properly | |
| alias gogogo="sudo /etc/init.d/supervisor start && sudo supervisorctl start all && touch /tmp/commerce-error.log && chmod 0666 /tmp/commerce-error.log" | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment