Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove default symlink task #9

Closed
mariusbutuc opened this issue Feb 28, 2013 · 2 comments
Closed

Remove default symlink task #9

mariusbutuc opened this issue Feb 28, 2013 · 2 comments

Comments

@mariusbutuc
Copy link

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
Copy link
Owner

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?

@mariusbutuc
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants