Reply
   
 Deploying Rails app on Leopard Server - mongrel won't start 
 
 
  #1 (permalink)  
Old 08-08-2008, 01:56 PM
Regular

Group: Regulars
Location: Brisbane


Exclamation Deploying Rails app on Leopard Server - mongrel won't start

Have any of you gurus successfully deployed a Rails app on Leopard Server lately? I'm totally sleep deprived and desperate now. (Who knows what I might do?)

Using capistrano to deploy I now have it at the point where the deployment appears to succeed but mongrel simply does not launch. When I try to launch mongrel manually from the shell it returns as successful but has apparently not started at all.

Does anyone have any idea how I can troubleshoot this? My brain has turned to mush but I have to have this server online yesterday. (Yes, literally yesterday!)
__________________
nard
nard is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #2 (permalink)  
Old 08-08-2008, 06:15 PM
MacTalk Podcaster

Group: Regulars
Location: Melbourne


Does your app depend on gems that are defined in environment.rb that are not installed on your server?

Is your database.yml file on the server configured correctly? Most people don't keep it in source control so you might need to manually create it on the server if your cap recipes aren't doing this for you.

Does your production database exist?

I think a trip to #roro on freenode might be a quicker way to find someone to help you trouble shoot your server.
__________________
garethtownsend.info

Melbourne Cocoaheads! - we're cuckoo for cocoa apps!
Quamen is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 06:31 PM
Regular

Group: Regulars
Location: Brisbane


Thanks for replying, mate.

Quote:
Originally Posted by Quamen View Post
Does your app depend on gems that are defined in environment.rb that are not installed on your server?
I doubt it but that's definitely worth double checking. It is, however, a very simple app.

Quote:
Originally Posted by Quamen View Post
Is your database.yml file on the server configured correctly? Most people don't keep it in source control so you might need to manually create it on the server if your cap recipes aren't doing this for you.

Does your production database exist?
Database config is correct (and is in source control) and I have confirmed that it was successfully exported to the production server. I'll check whether the deployment has created the required fields since it might narrow down the point of failure.

Quote:
Originally Posted by Quamen View Post
I think a trip to #roro on freenode might be a quicker way to find someone to help you trouble shoot your server.
I might give that a try. It's always nicer working with fellow macaholics though, don't you think?
__________________
nard
nard is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 06:58 PM
Regular

Group: Regulars
Location: Redbank Plains.Brisbane.Au


Try firing up script/console and see if that loads (it may give you some different errors), and then try running script/server (and make sure mongrel fires up and not webbrick)
__________________
Recently formed Brisbane Cocoaheads come join us | Australian Cocoaheads
conufsed is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #5 (permalink)  
Old 09-08-2008, 09:04 AM
Member

Group: Member
Location: Perth, Australia


Quote:
Originally Posted by conufsed View Post
Try firing up script/console and see if that loads (it may give you some different errors), and then try running script/server (and make sure mongrel fires up and not webbrick)
Doesn't solve your issue, but I recently started using Passenger (mod_rails) which now works with Leopard's default Apache config and it's excellent. Certainly worth a look.
__________________
--------------------------------------------------------------
20" iMac 2.16 c2d, 3gb, 250gb
Macbook white 2ghz, 4gb, 250gb
Mac Mini 1.42ghz, 1gb, 120gb
LeeDavis is offline
Profile CardPM
Go to the top of the page
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
How to Guide: Modifying Leopard andrew.wilson Articles, How-to's and Reviews 15 29-03-2008 03:48 PM
Putting Leopard Server on iMac G5? rickyd Mac OS X & All Software 9 01-11-2007 12:11 AM
10.4 Server Admin Tools Won't Install on Leopard Client decryption Mac OS X & All Software 4 29-10-2007 04:44 PM
Win 2003 Server & SP2 problems grfxninja Help and New Mac User Support 7 26-03-2007 09:19 PM
Mail Server set up - Advice needed please. muddie@mac.com Mac OS X & All Software 15 24-03-2007 10:23 PM