Skip to content

Instantly share code, notes, and snippets.

@madrobby
Created January 23, 2015 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madrobby/da12f6394fa7f2fdf7b0 to your computer and use it in GitHub Desktop.
Save madrobby/da12f6394fa7f2fdf7b0 to your computer and use it in GitHub Desktop.
- name: Symlink release to be current version
sudo: yes
shell: >
rm -f {{ freckle_current_path }} &&
ln -s {{ release_path }} {{ freckle_current_path }}
notify:
- restart unicorn
- restart resque-worker
- restart resque-priority-worker
when: (new_release|changed) and ('appservers' in group_names)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment