如何使用本地IDE快速可靠地针对远程服务器进行开发? [英] How to reliably and quickly develop against a remote server with a local IDE?

查看:67
本文介绍了如何使用本地IDE快速可靠地针对远程服务器进行开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,

我的开发人员和我遇到了一个似乎无法解决的问题.似乎如此常见的问题令我感到惊讶,但我没有看到好的解决方案"……但我没有.

My devs and I are running into an issue that I can't seem to solve. It seems like such a common problem that I'm amazed I haven't seen a 'good solution' ... but I haven't.

远程服务器在git repo中包含我们的PHP.开发人员希望能够进行编辑和测试,而不必提交/推/拉等.这很有道理,尤其是对于JS/HTML的人而言.

Remote server contains our PHP in a git repo. Devs want to be able to make an edit and test it without having to commit/push/pull, etc. Makes a lot of sense, especially for the JS/HTML guy.

一个开发人员只是使用ssh并使用vi.另一个希望使用Zend Studio/Eclipse的用户–太棒了,它具有通过SSH使用远程服务器的功能;但这并不是那么聪明……如果您在目标服务器上执行git pull,然后在本地编辑文件并保存,它不会更新缓存,也不会让您知道您正在破坏别人的更改.(Dealkiller)它也不会同步.git,因此您可以远程执行所有git操作.

One dev just ssh's in and uses vi. Another wishes to use Zend Studio/Eclipse -- great, it has an ability for using a remote server via SSH; but it's not that slick ... if you do a git pull on the target server, and then edit the file locally and save it, it doesn't update the cache or let you know you're clobbering someone else's changes. (Dealkiller) It also doesn't sync down .git so you have do all git operations remotely.

SSHfs,AFP,SMB;grepping代码时,一切都很慢...并通过WAN连接吸吮.

SSHfs, AFP, SMB ; all are slow when grepping code... and suck over a WAN connection.

具有本地缓存​​的智能设计的远程驱动器挂载不会在文件更改时破坏文件---这是否存在还是梦想?我建议此时,这些人使用Unison或双向rsync.曾经有人建议有人使用Dropbox进行同步...越来越糟糕了...

A intelligently designed remote drive mount with local caching that doesn't clobber files when they change --- does this exist or is it still a dream? I'm at the point of suggesting the guys use Unison or two-way rsync at this point. We once had someone suggest a Dropbox for syncing ... it's getting that bad...

推荐答案

另一种可能性是分支您的开发资料库,并按照通用的编码方式调整每个团队成员.您说您的成员ssh之一直接进入并在控制台上使用vi.只需指示他在计算机上自己的dev分支上工作即可.

another possibility would be to branch your dev repository and to align every team member on a common way of coding. You said one of your member ssh's in directly and uses vi on console. Just instruct him to work on his own dev branch on the machine.

设置挂钩/脚本-提取最新的马stable并将其推入后备箱

Set up a Hook/script - to fetch the latest stable and push them to your trunk

这篇关于如何使用本地IDE快速可靠地针对远程服务器进行开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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