Coder Social home page Coder Social logo

Comments (8)

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @treeder on May 26, 2017, 11:10

This happens so often, seems like it would be an annoyance to force this.

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @carimura on May 26, 2017, 11:14

I'm worried about destruction of production apps on accident.... so...easy.

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @hibooboo2 on May 26, 2017, 11:17

Could have a flag that you put on apps / routes that label them as prod and require confirmation / force...

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @treeder on May 26, 2017, 11:52

Wouldn't everyone just always use --force then? The only time you wouldn't would be the first time you create the route.

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @carimura on May 26, 2017, 11:53

@hibooboo2 that feels like an interesting middle ground... @treeder I wouldn't want my prod routes easily overwritable, especially if the name of the function is something completely different than what it was before.

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @hibooboo2 on May 26, 2017, 11:56

@treeder If users choose to always --force that is on them. Take git for example. you can git push or you can git push --force

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @treeder on May 26, 2017, 12:11

@hibooboo2 Totally different things. Although if git push --force was required to do any push, then maybe this would be similar, but that would make git really annoying.

Setting a flag on production to allow pushes without --force might be OK, but again, then you just add --force to your scripts and it wouldn't prevent anything.

The real way to prevent mistakes is to to push to production through CI/CD. Most likely that would be the only way for an important app. And only the CI user would have access to push to prod.

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @hibooboo2 on May 26, 2017, 12:44

This is true that that is a better way... My point was just that gits --force has to be used for destructive things. So maybe you only need to force if the image name changed for a route or the timeout or the format etc.. but if it is just bumping the image to a new version it doesn't require force...
That kinda thing.

from fn.

Related Issues (20)

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.