News for hackers. Stuff that matters.
Re:Show HN: Comfygure – A small CLI to manage application co... by mjlee on Tuesday May 28, 2019 @10:21AM (#20030278)
While that's true for a single dev, I think that quickly falls apart at scale.

The raw DB queries will invariably exist on someone's hard drive/in their head and be lost forever when they leave the team.

The rsync for file changes will result in developers stopping to ask each other "did this get rolled out yet?" multiple times a day.

Re:Show HN: Comfygure – A small CLI to manage application co... by founderling on Tuesday May 28, 2019 @10:23AM (#20030309)
Could be. I only know environments where every project has exactly one team member who can push to production.

Usually the version control happens in git. And the person who can push to production is also the person in charge of the master branch.

I always structure teams that way. So I cannot speak for other structures.

Re:Show HN: Comfygure – A small CLI to manage application co... by mjlee on Tuesday May 28, 2019 @10:25AM (#20030351)
I can see that happening as a result of some other requirement, but I can't work out why you'd purposefully structure a team so that only one team member can push to production. To me, the downsides (single point of failure) outweigh the benefits (ease of deployment.) Is there something I'm missing?
Re:Show HN: Comfygure – A small CLI to manage application co... by founderling on Tuesday May 28, 2019 @10:32AM (#20030446)
Well, each team member has their own set of skills.

Say ... Joe. Joe is good at looking at some mockup and turning it into html+css code.

So somewhere in the development process, Joe has an important role.

But why should Joe be able to push something to production?

Re:Show HN: Comfygure – A small CLI to manage application co... by dieblur on Tuesday May 28, 2019 @10:56AM (#20030740)
I think the argument isn't so much that "everyone needs to be able to push to production" as much as "more than one person should be able to push to production". Bus factor is an important variable.
Re:Show HN: Comfygure – A small CLI to manage application co... by founderling on Tuesday May 28, 2019 @11:08AM (#20030874)
That's like saying a company needs two CEOs because of bus factor.

Somebody else can take over the role of being responsible for pushing to production any time.

Re:Show HN: Comfygure – A small CLI to manage application co... by philipov on Tuesday May 28, 2019 @12:06PM (#20031461)
Not if they've never done it before.
Re:Show HN: Comfygure – A small CLI to manage application co... by stephenr on Tuesday May 28, 2019 @03:10PM (#20033303)
When it’s a no-tools manual process? Unlikely.
Re:Show HN: Comfygure – A small CLI to manage application co... by sametmax on Tuesday May 28, 2019 @02:09PM (#20032744)
Yes. Money. You are missing that it's often missing.
Re:Show HN: Comfygure – A small CLI to manage application co... by Kmaschta on Tuesday May 28, 2019 @10:28AM (#20030395)
Comfy was created because we used environment variables on multiple servers, for many environments (prod, staging, demo, dev, etc), deployed by a few developers.

The purpose of the tool is to help developers share their config and keep sync with the rest of the team.

But I agree, if it's overkill if you don't need it!

Re:Show HN: Comfygure – A small CLI to manage application co... by daveFNbuck on Tuesday May 28, 2019 @11:32AM (#20031139)
How does comfy handle devs who wish to have some personalization of their local config but otherwise get the latest version of the the dev environment?
Re:Show HN: Comfygure – A small CLI to manage application co... by Kmaschta on Tuesday May 28, 2019 @11:39AM (#20031202)
Comfy is a store of configurations for deployed environment. It's not recommended to store you local config into comfy, but you could.

If you do so, you have a system of tags. A config version can be tagged and the tag moved.

So, the integration environment can retrieve the config with the tag 'integration', say. And you can retrieve the latest.

Local: comfy get development Integration: comfy get development -t integration

Change the integration tag to the latest version : 1. Get the latest config hash with `comfy log development` 2. Set the tag integration to the latest `comfy tag move development integration <hash>`

Re:Show HN: Comfygure – A small CLI to manage application co... by founderling on Tuesday May 28, 2019 @10:31AM (#20030424)
Can you give an example of such an environment variable?
Re:Show HN: Comfygure – A small CLI to manage application co... by Kmaschta on Tuesday May 28, 2019 @10:40AM (#20030539)
Feature flags are a good example. One developer A enable a feature and deploy its version on integation.

Two days after, developer B deploys its version, but isn't aware that A deployed with the new feature enabled, so the feature is disabled with its deployment on integration.

Ideally, developers should use a centralized configuration management to no suppress each other configs. That's why we use Jenkins or the Atlassian suite for example. But it's heavy to install and maintain sometimes.