What are best practices for deploying a Catalyst application to a production server?

依然范特西╮ 提交于 2019-12-02 19:39:45

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:

To deal with the unsatisfied dependencies issue, I use a script that runs svn export for the entire app-tree to a separate directory, sets the environment appropriately and then executes:

perl -MMyApp -e '{print "OK"}'
if [ $? -ne 0 ]
then
    echo "MyApp failed compile, not installing."
    exit 1
fi

That's quite sufficient to ensure any modules installed in dev are available before recycling Apache and/or FastCGI. Once it succeeds the exported code is moved to its final location.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!