Ask HN: how do you stage/push your code?
11–16 of 16 posts
Re: Ask HN: how do you stage/push your code?
#12We've been using Beanstalk ( http://www.beanstalkapp.com ) for a few months now to collaborate more effectively, and thus far pretty impressed. Great system, and they've consistently added new features often.
Happy to answer any questions about Beanstalk Deployments which is my personal favorite part of the system: http://beanstalkapp.com/features/deployments
Re: Ask HN: how do you stage/push your code?
#13Because our workflow utilized git flow, we do the majority of our work in feature branches, submit PRs, and then merge those to develop when TravisCI says it passes.
Once on develop, we "cap staging deploy" and run any final tests using Testacular, Selenium, or just by hand.
Most of the time, though, all we do is eyeball the code changes on develop, confirm tests pass in TravisCI, and do a release on master and then "cap production deploy".
Database migrations are handled automatically via Doctrine with each deployment with rollback support.
Sessions are pooled, and there haven't been any issues between releases. NewRelic is our primary indicator for a successful release.
Using this method, we deploy 6+ times a day, and haven't had the the time to automate it all yet :)
Re: Ask HN: how do you stage/push your code?
#14After all 40,000 unit tests have passed, sync that version to prod with ssh tunnel. Rsync to new directory on all target machines in a rsync tree. Switch to new version by moving a symlink. Verify new version by looking at metrics -- if something is off, automatically switch back. Repeat up to 50 times a day ;-)
Have you had to deal with users with sessions across multiple versions?