Giter Club home page Giter Club logo

Comments (9)

schnittchen avatar schnittchen commented on July 2, 2024

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

from capistrano-deploytags.

relistan avatar relistan commented on July 2, 2024

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.

from capistrano-deploytags.

schnittchen avatar schnittchen commented on July 2, 2024

What would happen if the check was bypassed?

from capistrano-deploytags.

relistan avatar relistan commented on July 2, 2024

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.

from capistrano-deploytags.

schnittchen avatar schnittchen commented on July 2, 2024

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...

from capistrano-deploytags.

relistan avatar relistan commented on July 2, 2024

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.

from capistrano-deploytags.

schnittchen avatar schnittchen commented on July 2, 2024

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?

from capistrano-deploytags.

relistan avatar relistan commented on July 2, 2024

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

from capistrano-deploytags.

relistan avatar relistan commented on July 2, 2024

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

from capistrano-deploytags.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.