我继承了现有的Rails 2应用程序,目前正在尝试将其部署在生产服务器上。
作为rails / unix新手,找出rails应用程序运行的web服务器的最佳方法是什么,以及如何重新启动服务器。 (因为根据我的阅读,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?
如果是这样,重启应用程序以获取更改的最佳方法是什么?
非常感谢。
答案 0 :(得分:3)
这是否意味着mongrel_rails正在发生 使用
是
如果是这样,重启的最佳方法是什么 应用程序来获取我的更改?
这取决于您当前使用的应用服务器。假设当前配方正常,只需调用Capistrano重启任务。
$ cap deploy:restart