Skip to content

Instantly share code, notes, and snippets.

@nkallen
Created November 5, 2008 23:01
Show Gist options
  • Save nkallen/22464 to your computer and use it in GitHub Desktop.
Save nkallen/22464 to your computer and use it in GitHub Desktop.
namespace :deploy do
task :restart do
configuration = "#{stage}-#{release_name}"
run <<-CMD
echo -e "vcl.load #{configuration} /usr/local/etc/varnish/#{stage}.vcl\nvcl.use #{configuration}" | nc localhost 6082
CMD
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment