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
"