Message from discussion
Deployment conflict question
Received: by 10.114.127.4 with SMTP id z4mr32142wac.21.1246559494158;
Thu, 02 Jul 2009 11:31:34 -0700 (PDT)
Return-Path: <joseph.e.mcdon...@gmail.com>
Received: from mail-pz0-f174.google.com (mail-pz0-f174.google.com [209.85.222.174])
by gmr-mx.google.com with ESMTP id k32si910405wah.6.2009.07.02.11.31.33;
Thu, 02 Jul 2009 11:31:33 -0700 (PDT)
Received-SPF: pass (google.com: domain of joseph.e.mcdon...@gmail.com designates 209.85.222.174 as permitted sender) client-ip=209.85.222.174;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of joseph.e.mcdon...@gmail.com designates 209.85.222.174 as permitted sender) smtp.mail=joseph.e.mcdon...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-pz0-f174.google.com with SMTP id 4so1702036pzk.7
for <capistrano@googlegroups.com>; Thu, 02 Jul 2009 11:31:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:date:from
:user-agent:mime-version:to:subject:references:in-reply-to
:content-type:content-transfer-encoding;
bh=mwv0+vFEZa86agaYMRQ/uGb9rSpsCKCsQWu3ry83ivA=;
b=w4UHQVpESTJHZYQgaU0E2ZcQDkI0Xu2XtFIOshG63HOVs7Kw0G2I3cbONMrIXKJrxS
PSTe829TmzutzBcEoz3ppznGbiCwc4gayQyOo44Yw/TofYM4lg2dSdZtG+ttMfrGq3/8
Tpk3TqYJqAQErBLrjuu53kbEezRO6JsAIoBbU=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=message-id:date:from:user-agent:mime-version:to:subject:references
:in-reply-to:content-type:content-transfer-encoding;
b=gvMF9uQJhQJCGOth6/BkEuPYH4/j8Ze7RMta6f01fwt8iiJiZWieJIro+D1RgIEPOw
V5YnIIG+DvgHEghyaLxHHVU8MNYwujiVvwMKHXm/625qnT8BYCHw7s504AuynytvyFze
v/KXZviUzvK2qJMhfrV9yBGrSFI/K0w5oW2vo=
Received: by 10.140.177.15 with SMTP id z15mr509031rve.36.1246559493067;
Thu, 02 Jul 2009 11:31:33 -0700 (PDT)
Return-Path: <joseph.e.mcdon...@gmail.com>
Received: from ?10.1.90.110? (67.110.140.194.ptr.us.xo.net [67.110.140.194])
by mx.google.com with ESMTPS id c20sm2682459rvf.9.2009.07.02.11.31.31
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Thu, 02 Jul 2009 11:31:32 -0700 (PDT)
Message-ID: <4A4CFD05.2090...@gmail.com>
Date: Thu, 02 Jul 2009 14:31:33 -0400
From: Joe McDonagh <joseph.e.mcdon...@gmail.com>
User-Agent: Thunderbird 2.0.0.22 (X11/20090608)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
To: capistrano@googlegroups.com
Subject: Re: [capistrano] Deployment conflict question
References: <ef3b7c5c-6b2d-443e-9fe1-a486b4f8d...@h18g2000yqj.googlegroups.com>
In-Reply-To: <ef3b7c5c-6b2d-443e-9fe1-a486b4f8d...@h18g2000yqj.googlegroups.com>
cswebgrl wrote:
> Hi.
>
> I tried to deploy new Rails app code to a production server the other
> day and took down the live site in production. I'd like to avoid this
> in the future. Something happened in the process that affected the
> live site. The error log showed that fastthread was not found. I had
> to go into the fastthread gem and run setup.rb. Then it told me that
> Rails was not installed so I had to do a gem install Rails. Then
> there were other gems that were needed by the application and not
> found so I had to reinstall those too.
>
> I have my own staging server that this all worked on, but the staging
> server is able to serve multiple sites so it is not an exact replicate
> of the client's production box. The Apache setup is such that only
> one site can be served from this machine - the document root in Apache
> is /project/public.
>
> I've got a couple of questions. 1- Any idea why gems would need to be
> reinstalled? 2- Can I deploy Capistrano without restarting Passenger
> to put the code onto the production server and then once it's all
> there, change the document root in Apache then do a deploy with the
> Passenger restart?
>
>
> Thanks,
> Cindy
>
>
> >
>
Hi Cindy, did the client mix and match operating system-native packages
and rubygems? That can cause problems, and it wouldn't surprise me if it
caused this one.
I'm still kind of a noob with cap, so I'm not sure about question 2...
Have you thought about using virtualization to create real staging
environments for your clients? It's a pretty fundamental flaw if your
staging environment is not an exact replica of the production
environment (save the staged code).
--
Joe McDonagh
Operations Engineer
www.colonfail.com