Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Deployment conflict question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
cswebgrl  
View profile   Translate to Translated (View Original)
 More options 2 July, 16:52
From: cswebgrl <cschal...@gmail.com>
Date: Thu, 2 Jul 2009 08:52:27 -0700 (PDT)
Local: Thurs 2 July 2009 16:52
Subject: Deployment conflict question
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe McDonagh  
View profile   Translate to Translated (View Original)
 More options 2 July, 19:31
From: Joe McDonagh <joseph.e.mcdon...@gmail.com>
Date: Thu, 02 Jul 2009 14:31:33 -0400
Local: Thurs 2 July 2009 19:31
Subject: Re: [capistrano] Deployment conflict question

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lee Hambley  
View profile   Translate to Translated (View Original)
 More options 2 July, 19:31
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Thu, 2 Jul 2009 19:31:59 +0100
Local: Thurs 2 July 2009 19:31
Subject: Re: [capistrano] Deployment conflict question

Cindy,
Your mileage may vary using the remote dependencies and deploy:check... you
should also have a way of managing gems, this can be done through modern
rails (2.x+) or with a specific gem called geminstaller.

http://mislav.uniqpath.com/rails/specify-your-dependencies-with-capis...

- Lee

2009/7/2 cswebgrl <cschal...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cindy Schaller  
View profile   Translate to Translated (View Original)
 More options 2 July, 20:13
From: "Cindy Schaller" <cschal...@gmail.com>
Date: Thu, 2 Jul 2009 14:13:02 -0500
Local: Thurs 2 July 2009 20:13
Subject: RE: [capistrano] Re: Deployment conflict question

Thanks for your response.

Any thoughts on question #2 and deploying without the Passenger restart?

  _____  

From: capistrano@googlegroups.com [mailto:capistrano@googlegroups.com] On
Behalf Of Lee Hambley
Sent: Thursday, July 02, 2009 1:32 PM
To: capistrano@googlegroups.com
Subject: [capistrano] Re: Deployment conflict question

Cindy,

Your mileage may vary using the remote dependencies and deploy:check... you
should also have a way of managing gems, this can be done through modern
rails (2.x+) or with a specific gem called geminstaller.

http://mislav.uniqpath.com/rails/specify-your-dependencies-with-capis...

- Lee

2009/7/2 cswebgrl <cschal...@gmail.com>

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lee Hambley  
View profile   Translate to Translated (View Original)
 More options 2 July, 20:20
From: Lee Hambley <lee.hamb...@gmail.com>
Date: Thu, 2 Jul 2009 20:20:53 +0100
Local: Thurs 2 July 2009 20:20
Subject: Re: [capistrano] Re: Deployment conflict question

Cindy,
You should just be able to replace the deploy:restart task with something
like the following:

namespace :deploy
  task :restart do
    run "touch #{current_path}/tmp/restart.txt"
  end
end

2009/7/2 Cindy Schaller <cschal...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cswebgrl  
View profile   Translate to Translated (View Original)
 More options 3 July, 05:52
From: cswebgrl <cschal...@gmail.com>
Date: Thu, 2 Jul 2009 21:52:50 -0700 (PDT)
Local: Fri 3 July 2009 05:52
Subject: Re: Deployment conflict question

> 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 Engineerwww.colonfail.com

Hi Joe,

I've been thinking about our question regarding "mix and match
operating system-native packages and rubygems".  This is a bit
difficult to answer given that I did not set up the original
environment.  Do you know if there's a way to figure this out on the
production server?  I don't want to throw good after bad by freezing
gems that are already "bad."  If I freeze them, download the project
into a dev environment or staging environment, am I just bringing the
mess wherever I go?

I think what we really need is a clean install of the production
server and "start over" from there, but I'm not sure if this is
possible.

Thanks!
Cindy


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google