by FilterJoe · 13y ago · 0 comments
I've spent the last week mucking around with VMware/bitnami to try to get a nice clean Python/Django/Pycharm VM for myself (with a template Django project that gracefully does both development and deployment). I'm almost done but what a long hard slog it's been.
On Debian based systems, on your existing development machine, you can do:
dpkg --get-selections > installed_stuff.txt
Then copy the file "installed_stuff.txt" to the new machine/VM and do: dpkg --set-selections < installed_stuff.txt
It becomes a little more difficult when there are dependencies that aren't in the package system.Another thing I've found useful is to have a git repo with my config files. Then on a new machine I can clone the repo and have access to all of them. I've been meaning to write a script that copies everything to the right location, but haven't got around to it yet.
But still - this gets you a big head start.
And there is nothing in the result that has anything to do with ruby, just chef and the recipes are in ruby. We use it for setting up our dev environments and servers for PHP websites. Although we use Capistrano for the actual site deployment and not Chef.