Hacker News new | ask | show | jobs
by troels 6189 days ago
> Your deployment script doesn't need (and should not) be complex by any metric.

I kind of agree, but complexity is a relative concept. mv and cp doesn't exist on Windows. And you really don't have to use exotic commands to run into compatibility issues between bsd and linux. It's not long ago I had an error reported due to the fact that readlink doesn't work equal on linux and bsd. I don't think readlink is in the "too complicated" basket.

> That's the other broken premise. You don't "build once, run anywhere".

Why would I prefer to write three different deployment scripts, if I could write one? Am I missing something here?

> Puppet shows the way.

I don't know Puppet. I'll have a look at it.

1 comments

I kind of agree, but complexity is a relative concept. mv and cp doesn't exist on Windows. And you really don't have to use exotic commands to run into compatibility issues between bsd and linux.

Well, I have yet to see an application to span across Linux, BSD and wintendo at once. Such a setup obviously has much bigger problems than the deployment process ("broken beyond repair" comes to mind).

The real world deployments I have met were, at most, Linux/Solaris and even in these cases it was usually the cheapest to just scrap one (guess which) and move on. I have never seen a case where maintaining a mixed cluster could have possibly been worth the maintenance overhead.

Why would I prefer to write three different deployment scripts, if I could write one?

Because 3 simple scripts trump one that is gobbled up with conditionals.