Permalink
Browse files

logrotate for rails apps

  • Loading branch information...
1 parent 67d32b7 commit 4e05a5def8e7a9759b21e9d0101976344f53d919 Francisco J committed Jun 4, 2012
Showing with 6 additions and 3 deletions.
  1. +3 −1 others/config/schedule.rb
  2. +3 −2 zsh/zshrc
View
4 others/config/schedule.rb
@@ -19,6 +19,8 @@
# Learn more: http://github.com/javan/whenever
-every 1.day, at: '15:00' do
+env :PATH, "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin"
+
+every 2.hours do
command "logrotate --state=/tmp/logrotate.state /projects/dot-files/others/logrotate.conf"
end
View
5 zsh/zshrc
@@ -4,6 +4,7 @@ export ZSH=$HOME/.oh-my-zsh
# export ZSH_THEME="eastwood"
export ZSH_THEME="gallois"
+export DISABLE_AUTO_TITLE=true
plugins=(brew git gem rails3 pow)
@@ -15,8 +16,8 @@ export PATH="~/bin:/usr/local/Cellar/bin:/usr/local/bin:/usr/local/sbin:/usr/loc
export ANDROID_SDK_ROOT=/usr/local/Cellar/android-sdk/r6
# Node.js load path
export NODE_PATH=/usr/local/lib/node_modules
-# Set macvim as the default editor
-export EDITOR='/usr/local/bin/mvim -f'
+# Set Vim as the default editor
+export EDITOR='vim'
export PAGER='/usr/local/bin/vimpager'
# Load RVM

0 comments on commit 4e05a5d

Please sign in to comment.