3 ms·
Have a look at Fabric (http://docs.fabfile.org/en/1.6/ http://docs.fabfile.org/en/1.6/) I wrote a quick fabfile yesterday that automatically commits/merges my
by bendavis381 13y ago
Have a look at Fabric (http://docs.fabfile.org/en/1.6/ http://docs.fabfile.org/en/1.6/)
I wrote a quick fabfile yesterday that automatically commits/merges my local changes, pushes to a private GitHub repo, then SSHs into my production server, pulls down the latest code and restarts the web server. Gives me feedback along the way too.
- StavrosK 13y agoNo, don't look at fabric! Fabric is good for some stuff, but deployments should be repeatable, automated and idempotent. Look at ansible.cc instead. Don't use fabric for deployment (even though it's a fantastic tool for many use cases).
- mbeattie 13y agoI don't understand... how is that a knock on fabric? I have software built into packages and then config templates and some key/value stuff to substitute in. My fabric scripts log in, install a package, put the generated config files, and then restart the server. I can run this over and over again (repeatable) with one command (automated) and it always ends up at the same current version (idempotent).
- StavrosK 13y agoIt's not a knock on fabric, the same way using a hammer on screws isn't a knock on hammers. It works sometimes, but you generally want to use the right tool for the job.