[Ruby] deploy with no down time?
Neil Moomey
neil at motznik.com
Mon Jan 15 16:35:10 PST 2007
I have not use cap yet but you could easily create a script or use a utility
to only update new files. xcopy for Windows or rsync for Linux. You could
also use Subversion. Just be careful you don't accidently erase your
original file. If you are updating session code or session objects you will
kick people off I believe.
Neil
On 1/15/07, ben wiseley <wiseleyb at gmail.com> wrote:
>
> We're using cap for deploys (to a pound/apache/mongrel based rails env),
> which is great, but it results in downtime and our site, pretty much
> anytime
> of the day, has users online. I've been doing the daily deploys at 3am -
> but even then I'm kicking 30-50 users off line.
>
> Anyone have a better solution? I realize that sometimes down time is
> necessary (like large migrations, things that effect objects in sessions,
> etc.) but it seems like changing the text in views, simple tweaks to
> controllers, etc. should be able to pushed out with any downtime. I know
> that rails caches stuff - so there'd need to be someway to reset that,
> but,
> other than that, I can go in and live hack files on production and it
> works,
> so it seems like there just needs to be something like "cap update"
> instead
> of the complete copy/replace that cap does on your whole site.
>
> -ben
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>
--
Neil Moomey
Software Developer
Motznik Information Services
8301 Briarwood Street, Suite 100
Anchorage, AK 99518
Ph. 907.344.6254 Fax: 907.344.1759
More information about the Ruby
mailing list