在开发下一个版本时,如何运行一个版本的Web应用程序? [英] How do I run one version of a web app while developing the next version?

查看:52
本文介绍了在开发下一个版本时,如何运行一个版本的Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了一个Django应用,我希望获得一些外部用户的反馈.我想启动一个版本,然后创建一个私有版本,这样我就可以合并反馈并添加更多功能.我计划对此过程进行许多小的迭代.我是Web开发的新手.网站通常如何做到这一点?将我的Django项目文件夹复制到另一个目录,在该目录中启动服务器,然后在原始目录中继续我的开发工作,这仅仅是一个问题吗?还是我想改用版本控制系统?我的直觉是它是后者,但如果是这样,这似乎是一个具有很多用途的巨大话题(例如,协作,此处并不适用),我真的不知道从哪里开始.

I just finished a Django app that I want to get some outside user feedback on. I'd like to launch one version and then fork a private version so I can incorporate feedback and add more features. I'm planning to do lots of small iterations of this process. I'm new to web development; how do websites typically do this? Is it simply a matter of copying my Django project folder to another directory, launching the server there, and continuing my dev work in the original directory? Or would I want to use a version control system instead? My intuition is that it's the latter, but if so, it seems like a huge topic with many uses (e.g. collaboration, which doesn't apply here) and I don't really know where to start.

推荐答案

1)单独的URL www.yoursite.com与test.yoursite.com.您还可以执行www.yoursite.com和www.yoursite.com/development等.您还可以创建/beta或/staging.

1) Seperate URLs www.yoursite.com vs test.yoursite.com. you can also do www.yoursite.com and www.yoursite.com/development, etc.. You could also create a /beta or /staging..

2)保留单独的数据库,一个用于生产,一个用于开发.编写一个脚本,将您的实时数据库复制到开发数据库中.为您创建的每种类型的网站保留一个数据库.(您可能想为测试人员创建一个Beta或登台数据库.)在dev数据库中做您自己的工作.如果更改数据库结构,请将更改另存为.sql文件,当您将这些更改实时启用时,可以在实时站点数据库上加载并运行.

2) Keep seperate databases, one for production, and one for development. Write a script that will copy your live database into a dev database. Keep one database for each type of site you create. (You may want to create a beta or staging database for your tester).. Do your own work in the dev database. If you change the database structure, save the changes as a .sql file that can be loaded and run on the live site database when you turn those changes live.

3)通过版本控制将功能合并到您的不同站点中.我目前正在为Web应用程序创建一个Subversion安装程序,该安装程序具有我的稳定版(主版),一个用于暂存和一个用于开发.开发标签+分支合并到暂存中,然后暂存标签/分支合并到稳定中.版本控制可让您以所需的任何方式管理源代码.您将必须找到一种适合您的方法并使用它.

3) Merge features into your different sites with version control. I am currently playing with a subversion setup for web apps that has my stable (trunk), one for staging, and one for development. Development tags + branches get merged into staging, and then staging tags/branches get merged into stable. Version control will let you manage your source code in any way you want. You will have to find a methodology that works for you and use it.

4)考虑构建自动化.它将自动为您发布网站.看一下 http://ant.apache.org/.它可以驱动大量自动签出您的代码,然后根据需要将其上传到每个特定站点.

4) Consider build automation. It will publish your site for you automatically. Take a look at http://ant.apache.org/. It can drive a lot of automatically checking out your code and uploading it to each specific site as you might need.

5)本月玩具:有一个名为 cUrl 的实用程序您可能会发现有价值.它在命令行中做了很多事情.如果您不想使用全部或任何一个Ant,这对您来说可能没问题.

5) Toy of the month: There is a utility called cUrl that you may find valuable. It does a lot from the command line. This might be okay for you to do in case you don't want to use all or any of Ant.

祝你好运!

这篇关于在开发下一个版本时,如何运行一个版本的Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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