将 Catalyst 应用程序部署到生产服务器的最佳实践是什么? [英] What are best practices for deploying a Catalyst application to a production server?

查看:81
本文介绍了将 Catalyst 应用程序部署到生产服务器的最佳实践是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 Catalyst 应用程序部署到生产服务器的好方法是什么?目前,我在存储库的根目录中有一个 FastCGI 调度脚本,当我想更新服务器代码时,我会将分支推送到服务器.这很简单,但并不完美.如果代码在服务器机器上的测试失败(例如因为不满意的依赖关系),我就会留下损坏的应用程序.您如何部署 Catalyst 应用程序?你有更好的方法吗?

What is a good way to deploy Catalyst applications to a production server? Currently I simply have a FastCGI dispatch script in the root of the repository and when I want to update the server code, I push the branch to the server. This is quite simple, but not perfect. If the code fails the tests on the server machine (for example because of unsatisfied dependencies), I am left with broken application. How do you deploy your Catalyst applications? Do you have a better way?

推荐答案

代理负载平衡器和两个交替运行的触发器 fastcgi 应用程序的组合将是您最好的选择.你使用的是什么网络服务器?如果碰巧是 Lighttpd,请查看以下链接:

A combination of a proxy load-balancer and two flip-flop fastcgi applications running alternatively as production and staging applications would be your best bet. What web server are you using? If it happens to be Lighttpd, then have a look at these links:

使用 Catalyst 的高可用性 &FastCGI 外部服务器

这篇关于将 Catalyst 应用程序部署到生产服务器的最佳实践是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆