Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Remove default symlink task #9

mariusbutuc opened this Issue Feb 28, 2013 · 2 comments


None yet
2 participants

I'm exposed to fast_git_deploy for the 1st time while following Peepcode's Meet Chef.

Yet I see in their example app that deploy:symlink is being overridden/removed since using fast_git_deploy renders it obsolete.

How can this behaviour be integrated in fast_git_deploy instead?


smtlaissezfaire commented Feb 28, 2013

Hey mariusbutuc,

By default, fast_git_deploy never creates the symlink if you are doing a fresh deploy.

For already running apps, there's a task named 'deploy:warm' which runs mv releases releases.old and mv current current.old. I think moving them is safer than deleting them for existing deploys (You never want that "Oh shit...I broke my production app" feeling). With that said, you should always test your deploy script with deploy:warm on staging before doing it in a production env.

If you are really eager to clear up that current.old and releases.old, it's just one cap shell command away:

$ cap shell
cap> ls -al /my/current/path/current.old
cap> rm -rf /my/current/path/current.old

Does that help?

It helps indeed, thanks a lot for clearing it up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment