Ask HN: What clever tools/scripts do you use to manage development environments?
I see a lot of people using some scripts with tmux and dotenv/direnv.
I’m wondering if you have any clever productivity hacks for switching between different projects, managing infrastructure services, secrets, tools, versions etc.
9 comments
[ 3.2 ms ] story [ 33.3 ms ] threadIt’s peak startup opsec.
It's written in Go with no dependencies (or database). My intention was for an AWS image or something companies could run inhouse air-gapped from the Internet. Something like $10/m or so.
The cli is pretty easy to integrate with scripts: https://github.com/thisdougb/doocot
Longer term secrets were something I was looking at too. Pretty easy to extend this, but encroaches on Vault products and I felt that a harder sell to CTOs.
I've worked in infra/systems dev for years, and this sort of thing was bread and butter stuff.
Maybe I'll resurect it as an active project. What sort of feature/tool would get you to stop using Discord/Slack/etc for secrets?
Immediately reminded me of this (which I am no where near clever enough to use):
https://www.youtube.com/watch?v=dljNabciEGg
Add some scripting at the start to close windows/programs that might be sticking around from other projects, and now you can switch between projects with a lot less friction.
I always try to automate this because you get situations where you e.g. want to quickly fix a typo in a project, run tests, and push a commit, but because you fumbled on some dev step you forgot to do, you burn 15 mins figuring out why the dev environment won't start.
Infrastructure I put into a docker compose file, everything gets a non-default port to coexist, .env.local is preconfigured with relevant addresses.
Databases I use Sequelize migration and seeder scripts to create and populate.
https://github.com/chalet-dev/chalet