How does one do team development with node.js when all the developers develop on the same dev machine?
当所有开发人员在同一台开发机器上开发时,如何使用node.js进行团队开发?
Right now the dev server setup has nginx and apache. Developers SSH into the dev server and they have their own subdomained sandboxes to work on (database is shared). They hack their code and they check into the SVN repo. Great, works fine....until we started using node.js.
现在,开发服务器设置有nginx和apache。开发人员SSH进入开发服务器,他们有自己的子程序沙箱来处理(数据库是共享的)。他们破解了他们的代码,他们检查了SVN仓库。很好,工作正常....直到我们开始使用node.js.
It seems node is not like apache or nginx where there's an independent server that serves up code. In node, the server AND the app code is tied together, so what happens is each developer will need to start and stop the server when changes are made. This creates a problem if one instance is started, it blocks the port for other developers.
似乎节点不像apache或nginx,其中有一个独立的服务器提供代码。在节点中,服务器和应用程序代码捆绑在一起,因此每个开发人员在进行更改时都需要启动和停止服务器。如果启动一个实例,则会产生问题,它会阻止其他开发人员的端口。
I'm also having trouble figuring out how to put the node code into the same SVN repository as the PHP app code.
我也无法弄清楚如何将节点代码放入与PHP应用程序代码相同的SVN存储库中。
A friend told me the developers can do "timesharing" where the node code can only be modified by someone in a specific timeframe. Not sure if this process is scalable.
一位朋友告诉我,开发人员可以进行“分时”,节点代码只能在特定时间范围内由某人修改。不确定此过程是否可扩展。
Another option is to have everyone work locally off their computer with a VM copy of the dev server so they can develop independent of the dev server. This requires a lot of infrastructure change and I'm not ready to do that yet.
另一个选择是让所有人在他们的计算机上使用开发服务器的VM副本在本地工作,这样他们就可以独立于开发服务器进行开发。这需要大量的基础设施变更,我还没有准备好这样做。
Any suggestions on how to do this with the current shared dev environment setup?
有关如何使用当前共享开发环境设置执行此操作的任何建议?
Also, the reason why we are using node.js is to have good comet support. But if this is becoming a blockage to our current infrastructure, I'm willing to try other technologies and servers that is similar to how nginx or apache works--so that it is independent of the app code and can be compatible with our current development environment.
另外,我们使用node.js的原因是为了获得良好的彗星支持。但如果这对我们当前的基础设施造成阻碍,我愿意尝试其他类似于nginx或apache工作的技术和服务器 - 这样它就可以独立于应用程序代码并且可以与我们当前的开发兼容环境。
PS. I tried the nginx http push module. It's not well-maintained and not many updates. Scared to use it in production.
PS。我试过nginx http push模块。它维护得不好,而且没有太多更新。害怕在生产中使用它。
1 个解决方案
#1
3
You could have each developer's instance of Node.JS running on a different port.
您可以让每个开发人员的Node.JS实例在不同的端口上运行。
#1
3
You could have each developer's instance of Node.JS running on a different port.
您可以让每个开发人员的Node.JS实例在不同的端口上运行。