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

前端 未结 2 1961
有刺的猬
有刺的猬 2021-02-02 03:07

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 upd

2条回答
  •  伪装坚强ぢ
    2021-02-02 03:26

    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.

提交回复
热议问题