Welcome Guest | Login

503 error though I did not deploy via mephisto

Hi,

I am receiving a 503 error on my app if I do not run mongrel. When I do run mongrel, I am able to get my app running, though not completely correctly. However, I never specified in my capfile and deploy.rb that I want to run mongrel.

I am deploying with capistrano with a specification of fcgi. How do I remove this strange requirement that mongrel be running for the app to run?

Here's my deploy.rb

Thanks in advance for any help or pointers.

namespace :deploy do

 task :start, :roles => :app do
   run "rm -rf /home/#{user}/public_html;ln -s #{current_path}/public /home/#{user}/public_html"
 end

 task :restart, :roles => :app do
   run "#{current_path}/script/process/reaper --dispatcher=dispatch.fcgi"
   run "cd #{current_path} && chmod 755 #{chmod755}"
 end

task :after_update_code, :roles => :app do
  %w{exhibits}.each do |share|
   run "rm -rf #{release_path}/public/#{share}"
   run "mkdir -p #{shared_path}/system/#{share}"
   run "ln -nfs #{shared_path}/system/#{share} #{release_path}/public/#{share}"
 end
end

end

"

2008-01-28 12:38 PM

Hi - Please check out the "Capistrano 2.x - Deploying Your Rails Application on HostingRails.com" Wiki at the link http://www.hostingrails.com/forums/wiki_thread/46

2008-01-28 12:55 PM

HostingRails Support
Yes. That is the post I followed to the T to capify and deploy my app.

However, my app is only running properly if mongrel is running, but in my deploy.rb file I specify to use fcgi. Weird, huh.

2008-01-28 01:36 PM

Do I need to tell hostingrails.com to turn off mongrel or something?

2008-01-28 01:37 PM

Hi - You need to post a ticket to add vhost entries for your domain to use Mongrel. Thank you

2008-01-28 02:11 PM

HostingRails Support
Ok I will post a ticket, but to clarify if anyone reads this. I DON'T want to use mongrel.

Therefore, I will be posting a ticket to REMOVE the vhost entries.

2008-01-28 02:17 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.