-
Notifications
You must be signed in to change notification settings - Fork 404
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
When overwriting a route: prompt for yes/no or require --force #45
Comments
In gitlab by @treeder on May 26, 2017, 11:10 This happens so often, seems like it would be an annoyance to force this. |
In gitlab by @carimura on May 26, 2017, 11:14 I'm worried about destruction of production apps on accident.... so...easy. |
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... |
In gitlab by @treeder on May 26, 2017, 11:52 Wouldn't everyone just always use |
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. |
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 |
In gitlab by @treeder on May 26, 2017, 12:11 @hibooboo2 Totally different things. Although if Setting a flag on production to allow pushes without 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. |
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... |
In gitlab by @carimura on May 26, 2017, 11:07
especially if overwriting with a different function name, older version, whatever. Just feels pretty destructive as is.
The text was updated successfully, but these errors were encountered: