Here's a simple example with rails, you can do the same with node or django apps: http://www.jorgecastro.org/2012/11/16/deploying-your-rails-a...