我已經繼承了現有的Rails 2應用程序,並且正在嘗試將它部署到生產服務器上。重新啓動Rails服務器
作爲rails/unix新手,找出運行rails應用程序的webserver的最佳方式是什麼,以及如何重新啓動服務器。 (因爲從我讀過的內容來看,rails會將生產服務器上的所有內容緩存起來)
以前的開發人員使用Capistrano,但不幸的是我無法訪問GIT存儲庫。
我注意到/configuration/deploy.rb有下面幾行:
desc "Custom restart task for mongrel cluster"
task :restart, :roles => :app, :except => { :no_release => true } do
deploy.mongrel.restart
end
desc "Custom start task for mongrel cluster"
task :start, :roles => :app do
deploy.mongrel.start
end
desc "Custom stop task for mongrel cluster"
task :stop, :roles => :app do
deploy.mongrel.stop
end
這是否意味着mongrel_rails正在使用?
如果是這樣,重新啓動應用程序以獲取更改的最佳方式是什麼?
非常感謝。
注意:我有FTP和SSH訪問Web服務器 – Donald 2011-02-15 22:59:51