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

Can no longer deploy a specific revision #8

Closed
schnittchen opened this issue Feb 19, 2013 · 9 comments
Closed

Can no longer deploy a specific revision #8

schnittchen opened this issue Feb 19, 2013 · 9 comments

Comments

@schnittchen
Copy link

...because capistrano-deploytags considers it a dirty tree:

*** Preparing to deploy HEAD from branch 'master' to 'production'
*** Whoa there, partner. Dirty trees can't deploy. Git yerself clean first.
@schnittchen
Copy link
Author

A workaround is to create a branch and use -s <branchname>

@relistan
Copy link
Contributor

Sorry for not having put this into the readme. This workaround is exactly what we do. I think there is some consideration needed around how to do this better in the plugin. But there are constraints that make it hard to do differently than it is now.

@schnittchen
Copy link
Author

What would happen if the check was bypassed?

@relistan
Copy link
Contributor

One of the problems with that is that if you weren't actually up to date with what is in the repo (assuming you deploy directly from git like most people), you would tag the wrong commit with the deployment tag. You could also be deploying code you don't know changed. Lastly, other plugins like capistrano-detect-migrations rely on the tree being correct.

@schnittchen
Copy link
Author

If that's the only issue, one could skip deploy tagging as well. Probably one would only want that on some kind of staging setup...

@relistan
Copy link
Contributor

So, since the plugin is all about deploy tagging, I'm wondering how you're using it if not for deployment tags? We don't use it for staging, we use it for tracking which code has been deployed to which production server environment, and the capistrano-detect-migrations plugin uses the tags to idenify new Rails migrations.

@schnittchen
Copy link
Author

I have a staging server environment which mirrors production closely (and at times not so closely). capistrano-deploytags tags deploys to that as well, since it's just a multistage environment. Is there a way to configure cap-deploytags to only tag deploys for a subset of multistage envs?

@relistan
Copy link
Contributor

That would be a good feature, but no, not implemented. Pull requests welcome. :)

@relistan
Copy link
Contributor

Closing as there is a known workaround and currently no obvious solution.

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