I went thru the deployment tutorial, and everything seems to be working fine except for a couple things. I pretty much copied the Capfile example right from the tutorial. I did however have to change the restart step of the restart task to use the deploy_to variable rather than the current_path. This was because I kept getting "could not find pid" errors when attempting to stop the mongrel processes during restart.
That seemed to solve that, and I thought I was on my way, but it seems that the code in my:
/home/{user}/{application}/current directory is not the code that is being served up, but rather the code in my /home/{user}/{application}/app directory is being served up.
This is what the restart task now looks like in my Capfile:
task :restart, :roles => :app do
run "ln -s #{deploy_to}/shared/config/mongrel_cluster.yml #{current_path}/config/mongrel_cluster.yml"
run "cd #{deploy_to} && mongrel_rails cluster::restart"
run "cd #{current_path} && chmod 755 #{chmod755}"
end
So, I was wondering if you could provide some insight as to why code from the current directory is not being served up. Possibly something is not linked correctly ? Not quite sure, any help is appreciated.
Thanks,
Jeff