Hacker News new | ask | show | jobs
by CodeWriter23 3189 days ago
I develop against the deployment environment run in virtual machines for two reasons.

1) Too many packages/servers/etc. I've tried to install under OS X over the years just didn't quite work right. That's probably not the case so much any more, but I have experienced it recently.

2) Developing against a macOS localhost can mask problems associated with my code running in the deployment environment. So to avoid those surprises, I develop against the deployment environment.

If I need root for package install or other server deployments, I log into the VM and do it there. I rarely need to install stuff on my macOS workstation.

1 comments

Re: #1 that’s been generally smooth for me since Homebrew stabilized but I think your second point is key: it’s faster to develop locally but you definitely want to have some regular test that you’re in sync with the actual deployment environment. Docker has made that pretty easy now that the Mac Docker app is solid.
Brew is what I was alluding to, they have straightened out much of the package management issues. I ran into problems recently where certain CPAN modules wouldn't compile under OS X.