Skip to content

u/themarmot

In this archive from Oct 2010 to Oct 2013

2
posts
15
comments
0
media
63
score

I'm curious to know why this wouldn't work (aside from trying to move furniture in being a horrific experience, and also falling 10 feet in the middle of the night when I wanted a glass of water).

2 points

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.

7 points

Arch makes a great server setup. Aside from the controversial package signing issue, it's extremely stable and has a very low memory footprint. Just about everything you can imagine to get things setup is already in the wiki and many of the installs for what the OP mentioned above only vary slightly from RHEL derivatives. One great thing I personally love about running arch is that it's so much easier to setup and configure a server with only the tools I need, so if I'm running a cluster it's not too difficult to get a network up and running securely.

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.