News for hackers. Stuff that matters.

Poll

Chef 21 votes
Puppet 14 votes
Git 131 votes
Capistrano 53 votes
EC2 BeanStalk 2 votes
Other 69 votes
Fabric 26 votes
Re:Poll: What do you use for deploying code? by rdtsc on Tuesday June 11, 2013 @10:19PM (#5866088)
Two projects I have been following that I like are Salt and Ansible.

http://saltstack.com/community.html

http://www.ansibleworks.com/

Re:Poll: What do you use for deploying code? by kyleslattery on Tuesday June 11, 2013 @11:02PM (#5866270)
We're using Ansible, and so far I've really been liking it. Super simple to set up, and the syntax is extremely easy to write and follow.
Re:Poll: What do you use for deploying code? by jgautsch on Tuesday June 11, 2013 @11:20PM (#5866339)
I've actually spent the last 14 hours learning to deploy to ec2 using rubber. It's definitely powerful, and the railscast helps, but I haven't found much in the way of help for doing anything beyond deploying basic apps (for example, working on setting up resque workers right now...)

Before 2 days ago I used Heroku for everything.

PS. Rails.

Re:Poll: What do you use for deploying code? by zbruhnke on Tuesday June 11, 2013 @10:40PM (#5866173)
I use capistrano for deployment, I mainly like it because I can set up a VPS on any service and have it clone the repo from git, config is almost identical between applications depending on the complexities of each and it can be heavily modified for the clients needs as well.

Definitely worth a look

Re:Poll: What do you use for deploying code? by jvoorhis on Tuesday June 11, 2013 @10:24PM (#5866107)
I'll nominate fabric.

http://fabfile.org/

Re:Poll: What do you use for deploying code? by NathanKP on Tuesday June 11, 2013 @11:14PM (#5866325)
I have been using http://beanstalkapp.com/ to do automated deployments. Basically it is Github + some nicer deployment features and a corporate repo focus. (Private by default, easy to add / remove / manage account access when adding or removing employees.)

I have experimented with EC2 Beanstalk and AWS OpsWorks. Both are horrible, and I do not recommend them. The documentation is incredibly obscure, with gaping holes for even basic use cases and I found the deployments themselves to be slow to complete, and unreliable, frequently having issues that were extremely hard to diagnose because of hard to access logs and cryptic error messages.

Git is by far the best deployment system in my opinion, especially if you can automate the code to get each server instance to automatically pull when needed.

But for beginners Beanstalk (http://beanstalkapp.com) is the absolute best. It is dead simple to set up a Git repo on the service, and then Beanstalk's servers will automatically deploy via SFTP to servers (or even directly to Amazon S3 for static content, even invalidating CloudFront caches), and you instantly have a secure deployment mechanism out of the box with no fiddling required.

With Node.js code if you are running your server through Forever you can easily configure it to watch the code directory for changes and restart the server when needed. End to end setup is extremely quick, and it is incredibly reliable.

Re:Poll: What do you use for deploying code? by EugeneOZ on Wednesday June 12, 2013 @04:33AM (#5867113)
I don't agree that git is best for deployment and that beanstalk is focused on beginners - git deployment actually for beginners and beanstalk becomes much more handy when you have more than 1 server and 1 developer. Also, not in all languages "git pull" is enough, sometimes you need to run custom commands after that to run external (to git) tools.
Re:Poll: What do you use for deploying code? by bennyg on Tuesday June 11, 2013 @11:01PM (#5866269)
Github is pretty key for getting my code in front of the largest amount of users - and their private repo's keep the code that makes it to the app store versioned and accessed between all of my different workstations. Not coming from a CS background, I love their product - so naturally I've moved my own coding habits to using git for personal projects.

Unfortunately at work we're still on svn...

Re:Poll: What do you use for deploying code? by beefsack on Tuesday June 11, 2013 @11:05PM (#5866295)
Do you mean source control or deployment? Wondering how you use GitHub and SVN for deployment.
Re:Poll: What do you use for deploying code? by bennyg on Tuesday June 11, 2013 @11:09PM (#5866307)
I guess I meant that GitHub totally changed my creative and coding process to using git and being comfortable with its tooling. I'm fooling around with basic Heroku/RoR stuff now, so that's what I'm mainly using git for deployment purposes.

If it helps, I'm an iOS developer, so git isn't realy an option for deployment.

Edit: I guess if I put a different perspective on it, I deploy my open source tools through GitHub and a good commit system. GitHub is pivotal for getting those tools in front of the largest amount of programmers as possible.

Re:Poll: What do you use for deploying code? by digisth on Tuesday June 11, 2013 @10:45PM (#5866197)
Mostly Cap and Git, but Ansible (http://www.ansibleworks.com/) caught my eye recently for experimentation. Looks very promising.
Re:Poll: What do you use for deploying code? by davidbanham on Tuesday June 11, 2013 @10:46PM (#5866210)
Currently Chef. It's great for getting a machine in order, but it's proven to be a real bear for actually managing deployment of server processes.

We're working on a deployment manager based on Substack's fleet.

https://github.com/substack/fleet https://github.com/PinionTech/rear-admiral

Re:Poll: What do you use for deploying code? by gosuri on Wednesday June 12, 2013 @03:17AM (#5866948)
Fleet looks very interesting! Thank you.
Re:Poll: What do you use for deploying code? by rajivtiru on Tuesday June 11, 2013 @10:56PM (#5866244)
1. Atlassian Bamboo for polling my git repository for changes

2. Apache ANT for the build script

3. Then back out to a production/tarball git repo

4. Every load balanced server image has a cron job to poll the production git for changes

This way all I( or my team members) have to do is push to git.

Everything else is automated. All servers load balancing will keep themselves up to date.

Re:Poll: What do you use for deploying code? by X4 on Wednesday June 12, 2013 @09:27AM (#5867917)
That's quite nice, but your weakness is that a single-point of failure can delay your deployment, without you noticing it early enough. Or do you have solution for that?
Re:Poll: What do you use for deploying code? by rajivtiru on Wednesday June 12, 2013 @08:36PM (#5871654)
We stage all changes on a 'develop' branch and run the same exact build process(thanks to bamboo) and deploy to the staging server.

If QA passes, then we just merge the changes to master, push and deploy to production servers.

Bamboo has a nice variety of test suites you can run too.

I really like that git(via bitbucket) and bamboo notify hipchat of any build failures/updates so we can respond immediately if something serious actually goes wrong.

Re:Poll: What do you use for deploying code? by sekm on Wednesday June 12, 2013 @01:07AM (#5866612)
Infrastructure changes:

1. Stash pushes git change notification to bamboo 2. Bamboo checkout git and run cucumber tests on ec2 3. Green tests means puppet changes are pushed to puppet master under staging env 4. Manual build step to push to prod env 5. All affected infra will pickup puppet changes on next run

Re:Poll: What do you use for deploying code? by imjared on Tuesday June 11, 2013 @10:45PM (#5866199)
If I'm just showing off work to clients and pushing things to a staging/dev server, a lot of the time I'll use grunt-rsync or grunt-sftp to push everything up at the end of my `$ grunt produce` task. For site deployments, I prefer Capistrano since it's dead simple.
Re:Poll: What do you use for deploying code? by CJPoll on Tuesday June 11, 2013 @11:00PM (#5866267)
Chef + Caterer (https://github.com/tylerflint/caterer)

Chef - because it's so easy to write cookbooks

Caterer - because the push model is clean, and it has a similar workflow to Vagrant.

Re:Poll: What do you use for deploying code? by saosebastiao on Tuesday June 11, 2013 @11:05PM (#5866293)
Has anybody looked into using torrents with git? I've heard a few larger companies use it for fast code deployments across 100's/1000's of servers. I'd be interested in more information on how they do this.
Re:Poll: What do you use for deploying code? by jonesnc on Tuesday June 11, 2013 @11:20PM (#5866340)
I don't think it's based on git, but twitter has their own bittorrent-based solution called Murder.

https://github.com/lg/murder

Re:Poll: What do you use for deploying code? by X4 on Wednesday June 12, 2013 @09:23AM (#5867900)
wow, that sounds murder awesome. here's a video: http://vimeo.com/11280885
Re:Poll: What do you use for deploying code? by felipesabino on Tuesday June 11, 2013 @10:34PM (#5866147)
Just came across dokku this week https://github.com/progrium/dokku

Couldn't give it a try yet, but seems rather interesting

Re:Poll: What do you use for deploying code? by danso on Tuesday June 11, 2013 @09:50PM (#5865970)
I just started using EC2 BeanStalk. It's been surprisingly painful...the system makes sense, but some of the config details are obscure...(using Rails 3.2 and mysql)

Shouldn't Heroku be on this?

Re:Poll: What do you use for deploying code? by gosuri on Tuesday June 11, 2013 @09:55PM (#5865989)
Thank you, was thinking about checking it out. Could you explain why you went with BeanStalk?
Re:Poll: What do you use for deploying code? by danso on Tuesday June 11, 2013 @10:00PM (#5866011)
Server ops isn't my thing...and while I've set up EC2 machines before for specific apps and services, I'm trying to build a workflow for deploying as flexibly as I could with Heroku. I looked at Rubber for a brief moment and it felt like too much...so I gave Beanstalk a try.

Beanstalk has components that I can figure out on my own and the command line tools are easy enough...I'm currently stuck on figuring out when the hell it decides to set the DB user and password, despite what I've explicitly set it...so I know what's going wrong, but the whole settings part is much more annoying than it was on Heroku (even without trying to do anything too complicated). But EC2 has the full suite of services I need so I'll stick with it for now. I expect that once I'm comfortable with BeanStalk, it won't be hard to just migrate to old fashioned EC2 and capistrano.

BeanStalk's support for Rails is relatively recent so the lack of questions on StackOverflow is probably why I'm struggling

Re:Poll: What do you use for deploying code? by gottagetmac on Tuesday June 11, 2013 @10:52PM (#5866232)
I think Heroku counts as "git"
Re:Poll: What do you use for deploying code? by abrudtkuhl on Wednesday June 12, 2013 @03:04PM (#5869936)
Is anyone using Octopus for .NET stack deployment? http://octopusdeploy.com/
Re:Poll: What do you use for deploying code? by typicalbender on Tuesday June 11, 2013 @10:36PM (#5866156)
Re:Poll: What do you use for deploying code? by pflats on Tuesday June 11, 2013 @11:14PM (#5866326)
I know it's 2013 and the state of the art has changed (as have trends) but I'm kinda weirded out to not see CVS or SVN on here.
Re:Poll: What do you use for deploying code? by X4 on Wednesday June 12, 2013 @09:26AM (#5867910)
That's a version control system. OP is talking about a deployment system. Difference is that the deployment system does something with your final code (from your your git/svn/hg/cvs/mnt etc.).

Please read http://en.wikipedia.org/wiki/Software_deployment

Re:Poll: What do you use for deploying code? by mkhpalm on Wednesday June 12, 2013 @12:23AM (#5866526)
1. Build the debian package 2. Add to private repository 3. Trigger apt-get upgrade on all the servers via any tool or method of choice.
Re:Poll: What do you use for deploying code? by X4 on Wednesday June 12, 2013 @09:29AM (#5867931)
That's what a deployment system is for. It should do 1, 2 and optionally even 3 for you. You should probably look into "landscape" a canonical project.
Re:Poll: What do you use for deploying code? by misiti3780 on Tuesday June 11, 2013 @10:53PM (#5866236)
Fabric is pretty great - but every time I read about chef I wish I had the time and energy to sit down and learn ruby so I could use it.
Re:Poll: What do you use for deploying code? by misiti3780 on Tuesday June 11, 2013 @10:54PM (#5866239)
also - can anyone comment on what is the closet thing to chef written in the best language every, python :)
Re:Poll: What do you use for deploying code? by gecko on Tuesday June 11, 2013 @11:04PM (#5866285)
SaltStack (http://saltstack.com/community.html) and Ansible (http://ansible.cc) would be your two closest options. Of the two, I prefer Ansible for its simplicity and the fact that it can be extended in any language, but it's worth noting that that simplicity currently comes at a cost of power compared to Chef. (E.g., Chef has a concept of "ensure this service is present," and that works on all supported operating systems, whereas Ansible has different modules for different supervisors.)
Re:Poll: What do you use for deploying code? by ipmb on Tuesday June 11, 2013 @11:26PM (#5866358)
Re:Poll: What do you use for deploying code? by callmeed on Tuesday June 11, 2013 @10:49PM (#5866221)
Can someone explain how Chef works for Rails deployment? Does it replace Capistrano entirely? Suggested tutorials for getting started?
Re:Poll: What do you use for deploying code? by bproctor on Tuesday June 11, 2013 @10:30PM (#5866133)
Fabric FTW
Re:Poll: What do you use for deploying code? by gijoeyguerra on Tuesday June 11, 2013 @10:40PM (#5866171)
Jenkins + Powershell in our Microsoft stack.
Re:Poll: What do you use for deploying code? by abrudtkuhl on Wednesday June 12, 2013 @12:32PM (#5868970)
Would love more info on this setup.... looking to do the same in our shop
Re:Poll: What do you use for deploying code? by platz on Tuesday June 11, 2013 @10:51PM (#5866226)
hand-written powershell or using a library?
Re:Poll: What do you use for deploying code? by grandalf on Tuesday June 11, 2013 @10:46PM (#5866205)
My preferred approach is to bundle the code into an apt package (or packages) and then use fabric.
Re:Poll: What do you use for deploying code? by misiti3780 on Tuesday June 11, 2013 @10:55PM (#5866241)
can you give more info on how you do this ?
Re:Poll: What do you use for deploying code? by leetrout on Tuesday June 11, 2013 @11:14PM (#5866323)
Re:Poll: What do you use for deploying code? by misiti3780 on Wednesday June 12, 2013 @10:04AM (#5868112)
thanks
Re:Poll: What do you use for deploying code? by gavinh on Tuesday June 11, 2013 @10:25PM (#5866116)
i use a git post-receive hook that calls a bash script and supervisor for small projects
Re:Poll: What do you use for deploying code? by Pewpewarrows on Wednesday June 12, 2013 @09:07AM (#5867851)
Fabric to bootstrap new Salt minions, and Salt for the actual deployment.
Re:Poll: What do you use for deploying code? by snambi on Tuesday June 11, 2013 @10:44PM (#5866195)
what is the best tool for java web applications that are built as a war file deployed on tomcat?
Re:Poll: What do you use for deploying code? by jdboyd on Wednesday June 12, 2013 @12:00AM (#5866472)
Call this a vote for Ansible.
Re:Poll: What do you use for deploying code? by itsuart on Tuesday June 11, 2013 @11:31PM (#5866377)
SVN Commit / SVN Update
Re:Poll: What do you use for deploying code? by crdoconnor on Tuesday June 11, 2013 @10:45PM (#5866203)
Salt
Re:Poll: What do you use for deploying code? by dnm on Tuesday June 11, 2013 @10:37PM (#5866161)
rsync
Re:Poll: What do you use for deploying code? by misiti3780 on Tuesday June 11, 2013 @10:55PM (#5866242)
really? that's bad ass if this isnt a joke!
Re:Poll: What do you use for deploying code? by TylerE on Tuesday June 11, 2013 @10:27PM (#5866121)
SCP, and human monitoring.
Re:Poll: What do you use for deploying code? by myhf on Tuesday June 11, 2013 @11:02PM (#5866276)
sounds expensive
Re:Poll: What do you use for deploying code? by TylerE on Tuesday June 11, 2013 @11:22PM (#5866346)
We don't deploy every 2 secs, and botching something because you tried to automate it too much costs a lot more than a few minutes of my time.
Re:Poll: What do you use for deploying code? by googya on Wednesday June 12, 2013 @12:17AM (#5866511)
Capistrano
Re:Poll: What do you use for deploying code? by chrisgoman on Tuesday June 11, 2013 @10:37PM (#5866160)
fabric
Re:Poll: What do you use for deploying code? by peterbotond on Tuesday June 11, 2013 @10:12PM (#5866064)
fossil scm