Patching a perl cgi web application
I've written a web cgi application in perl and before I start to distribute it to clients, I'd li开发者_如何学Cke to provide an option for future updates.
I would like to know what are the standard approaches for that using free Linux tools. It is OK for the server to be stopped during updating.
Thank you,
Spasski
If you have separated code from configuration and data, then the easiest way is to tar/zip the new files and unpack them onto the existing installation. If you need to update the data files, then you could include a script that makes the necessary changes.
Take a look at th bugzilla upgrade guide. I've used this process many times without a hitch.
http://www.bugzilla.org/docs/tip/en/html/upgrade.html
精彩评论