在生产环境中发布基于python/ruby​​/script的Web应用程序时的实践 [英] Practices while releasing the python/ruby/script based web applications on production

查看:45
本文介绍了在生产环境中发布基于python/ruby​​/script的Web应用程序时的实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我纯粹是Windows程序员,花了所有时间来攻克VC ++.

I am purely a windows programmer and spend all my time hacking VC++.

最近,我一直在领导几个基于Web的应用程序,我自己使用python(/pylons框架)构建了应用程序,并在rails上进行了项目.所有的Web项目都托管在ubuntu linux上.

Recently I have been heading several web based applications and myself built applications with python (/pylons framework) and doing projects on rails. All the web projects are hosted on ubuntu linux.

在基于脚本的语言方面,我们遵循的用于构建和发布VC ++ Windows应用程序的 RELEASE 过程和检查列表仅不再有用.

The RELEASE procedures and check list we followed for building and releasing VC++ windows application are merely no more useful when it comes to script based language.

因此,我们现在不构建任何二进制文件.使用开源cms应用程序时,我通过 ftp 服务器将asp/php文件复制到IIS文件夹中.

So we don't built any binaries now. I copied asp/php files into IIS folder through ftp server when using open source cms applications.

因此,FTP是将文件托管到Web服务器的一种方式.现在我们感到懒惰或不是那么热衷于通过ftp复制文件,而是使用 SVN检出,我们只需进行 svn更新即可获取最新副本.

So FTP is the one of the way to host the files to the web server. Now we feel lazy or not so passionate to copy files via ftp instead we use the SVN checkout and we simply do svn update to get the latest copy.

SVN检出和svn更新是否是将最新的构建文件更新到服务器中的正确方法?使用svn update有什么缺点吗?有什么更好的方法可以将基于脚本/基于Web的脚本发布到生产服务器中?

Is SVN checkout and svn update are the right methods to update the latest build files into the server? Are there any downside in using svn update? Any better method to release the script/web based scripts into the production server?

PS:我在Linux平台上的某些扩展中使用过ssh服务器.

PS: I have used ssh server at some extension on linux platform.

推荐答案

我将为每个版本的Web应用程序在SVN中创建一个分支,当该版本准备就绪时,我将在服务器上检出该分支并将其设置为运行或将其移至旧版本中.

I would create a branch in SVN for every release of web application and when the release is ready there, I would check it out on the server and set to be run or move it into the place of the old version.

这篇关于在生产环境中发布基于python/ruby​​/script的Web应用程序时的实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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