3 ms·
Yeah thats the problem with deploying "by hand". Maybe this python guys should use Capistrano for this things :)
by ruby_rocker 16y ago
Yeah thats the problem with deploying "by hand". Maybe this python guys should use Capistrano for this things :)
- spahl 16y agoFabric is nice too and it's in python (http://docs.fabfile.org/0.9.1/ http://docs.fabfile.org/0.9.1/).
- neeleshs 16y agoI regularly use Fabric. After deploying a couple of projects with it, I have come up with a standard deployment layout and stack. Now its as simple as "fab deploy" and "fab revert". Thank you fab!
- Emouri 16y agoI'm looking to optimize my fab setup, feel like sharing your fabfile.py?
- astrofinch 16y agoSame here, except I've set things up so that any changes I make to my project are automatically synced instantly to a live staging domain, and I don't have a revert command (although I do back up copies of previous deployments). I also keep apt and pypi dependencies in project-local config files and have a refresh command that updates those packages on both the remote and local machine along with some other stuff. I think I might have overengineered things a little.
- justliving 16y agowould any of you share these files and your setup? I'd love to have a look into them. Thanks!
- StavrosK 16y agoHere you are: http://dpaste.com/231226/ http://dpaste.com/231226/
- justliving 16y agothanks a lot!
- astrofinch 16y agoSure. I doubt you'll get much out of it, but I'm still quite curious what your impression will be. http://pastebin.com/Q970rYaH http://pastebin.com/Q970rYaH If it helps, "li" is my current project's code name. The vast majority of the code is concerned with configuring a fresh Linode, not pushing recent changes (for that, see the rf and stage functions, and the functions they call). I hate system administration. The only way I could make myself configure my server was by writing a script to configure it for me.
- justliving 16y agothanks!
- StavrosK 16y agoMy fabric setup is basically: * push to <server> * update the files * compile sass to css * minify javascript * process the dependencies file (using pip) for updates (it does nothing if I haven't added new dependencies) * restart/flush/whatever I specify It works beautifully, I can deploy changes in a few seconds. EDIT: Okay how do I make lists :(
- jordanmessina 16y agoI was literally just looking into this yesterday because I've been lazy and haven't set up a good deployment process. I found this article http://lethain.com/entry/2008/nov/04/deploying-django-with-fabric/ http://lethain.com/entry/2008/nov/04/deploying-django-with-f... I'm wondering what the best practices are and since I have so many people around me who use Capistrano I'm thinking about just going with that. Any words of advice?