u/themarmot
In this archive from Oct 2010 to Oct 2013
- 2
- posts
- 15
- comments
- 0
- media
- 63
- score
Top posts
I'm looking for someone that can mentor me on unit testing and ci integration.
I've posted on kohanajobs and also to the kohana subreddit with no responses. I'm working on a project that requires these two things. Jenkins is already setup but I'm a bit lost on how to use it locally. Unit testing I've only had brief exposure to. I'd like to learn more about both but the sites a...
Local dev environment, beta testing environment, production environment. All tied together with Git and DeployHQ (or capistrano or ruby+puppet). Git is seriously the most crucial tool for me personally. I send schema migrations up with the code, and deployhq or whatever I'm using for deployments strip all the extra crap out, run migrations and/or setup any configs. If I'm working on a small project that will be rapidly evolved I use deployhq just because it's easy and fast to setup. It's not the best tool but it works for stuff like that. Backups are local (software image of drive) and github in which that repo is pulled down on several different machines. If I'm working on a big site I will use AWS, something like S3 for short term and glacier for long term backups, done incrimentally every hour. On most projects I also setup DB replication, typically a master->slave (read only master in event of catastrophe). All of this comes together with various bash scripts and servers I have setup just to run this for clients. My clients may be a little different though, they want things a certain way but don't want to know how it works.
Advice #1. If you have subcontractors working for you they will want access to production servers when their shit fails. Do not give it to them - it's a pain in the ass and changes should always go upstream (stick to the deployments: local -> beta -> production). I don't know why this is hard for some guys, but it really screws shit up when you've got a developer that wants to fix things in a live environment and circumvent the flow of code.
Advice #2. Use Git. Seriously, use it. If not git use mercurial, but honestly Git is mature, stable and full of features. Get the book, read the online tutorials, use it - everyday, all day.
Advice #3. I personally use sublime for code but it doesn't matter. You will see a lot of flame wars over Vim, Emacs, Eclipse, TextMate, Mac, Linux, Windows, Wamp, Mamp etc.. Avoid that whole mess and use what you feel comfortable with.
Advice #4. This pertains to #3, use a VM like virtualbox or Vmware. When you have a project replicate your production environment locally, i.e. if the apps hardware is Debian 5 with PHP 5.1, MySQL 4 etc... replicate it in virtualbox. It will save you time and money (if you do bid work like I do) and probably a lot of really awkward client meetings when you have to explain that feature X worked locally but somehow brought their site to a screeching halt. Added bonus, if you have multiple clients it's super easy to have a pool of virtual machines for each project. Just boot each one up as you need it.
Gotta say this is a bad idea. I know they are a bit redundant but when I toss up a server it's nice to have a temporary system in place since I can't always setup other services right away. I don't think it should be dropped but not pushed so much as a security solution.
I would so like to try this on my 24 core server, but it's not going to happen.
We just got it. The other servers went down in a blaze of glory. Literally, they started on fire. Epic failure at the datacenter.
This is the best I can do. Unfortunately rebooting that server without just cause would be employment suicide.