Skip to content

Instantly share code, notes, and snippets.

@nsanta
Created October 25, 2014 02:13
Show Gist options
  • Save nsanta/3cf45be2c58fb0af86cf to your computer and use it in GitHub Desktop.
Save nsanta/3cf45be2c58fb0af86cf to your computer and use it in GitHub Desktop.
deloy.rb
task :logs do
on roles(:app) do
# Establish link to database before running asset precompile
execute :tail, '-f', "#{current_path}/log/#{fetch(:stage)}.log"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment