从不同的计算机上处理项目的最简单方法是什么?
我有两台用于开发的计算机,一台在家里,一台在办公室。我在两台计算机上都使用 Aptana Studio 3,并且希望能够轻松地从两台计算机上处理单个项目。
在计算机之间传输项目有哪些简单的方法?现在我只是使用 USB 驱动器在计算机之间传输文件。
另外,我在一台计算机上使用本地 apache 服务器,在另一台计算机上使用本地 IIS 服务器。
I have two computers that I use for development, one at home and one at the office. I use Aptana Studio 3 on both machines and would like to be able to easily work on a single project from both computers.
What are some easy ways to transport the project between computers. Right now I am just using a USB drive to transfer the files between computers.
Also, I'm using a local apache server on one computer, and a local IIS server on the other.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我认为你应该使用 SVN、GIT、Mercurial 等。我建议您使用这个软件来管理您的项目:
Tortoise
I think you should use something like SVN, GIT, Mercurial and so on. I suggest you this software to manage your project:
Tortoise
您可以尝试从家里远程连接(例如通过远程桌面连接)到办公室计算机,这样您就只能在办公室计算机上工作,而无需传输文件。
或者,您可以设置源代码控制服务器(例如使用 SVN)并将项目提交到其中。这样,您将能够从多个位置处理它们。
You might try connecting remotely (via Remote Desktop Connection for example) from home to the office computer and in this way you will only work on the office one and there will be no need for file transfer.
Alternatively, you can setup a source control server (by using SVN for example) and commit your projects to it. This way, you will be able to work on them from multiple locations.
如果您有机会使用(虚拟)服务器和两台计算机的远程桌面,您将不会再使用其他解决方案。总的来说,像 php 这样的服务器端语言是理想的,因为您可以直接在测试 Web 服务器(lamp/wamp)上拥有存储库。这确保了所有工具都有一个版本,备份、同步等简单快捷。
如果我无法访问虚拟远程服务器,为了代码库安全性和适当的同步时间,我会使用 github 作为替代方案。但我不是 github 方面的专家。
if you have the opportunity to use a (virtual) server, and remote desktop from both computers, you won't come back to another solution. Overall with a server-side language like php, it's ideal, as you have your repository on your test web server (lamp/wamp) directly. That ensure ONE version for all your tools, easy and faster backups, synch, etc.
If I had no access to a virtual remote server, I would use github as an alternative, for the sake of code base security, and decent synch times. But I'm no expert on github.
登台环境
在您的情况下,最好的情况是拥有一台可供所有三台开发计算机访问的单独的登台计算机。这可以是您控制的另一台机器、可供所有其他机器使用的开发盒之一,或者外部主机 - 您可以从云提供商处以每月 10 美元的价格获得专用虚拟机,或者如果您的项目足够简单的话使用普通网络主机更具成本效益。
源代码管理器
源代码管理器是一个好的开始 - SVN 是通用且免费的。 Git 是另一个,甚至可以设置为进行远程部署。这些工具将为您带来两个好处:
文件同步
最后,像 Dropbox 这样的工具可以当您进行更改时,在所有三个系统之间同步您的文件。同样,这个是免费的,可以安装在大多数操作系统上。
Staging Environment
The best situation in your case will be to have a separate staging machine which is accessible to all three development machines. This can be another machine you control, one of the development boxes available to all of the others, or an external host - you can get a dedicated virtual machine from cloud providers for as little at $10/month, or if your project is simple enough use a plain web host even more cost-effectively.
Source Code Manager
A source code manager is a good start - SVN is common and free. Git is another and can even be set up to do remote deployments. These tools will give you two benefits:
File Synchronization
Finally, a tool like Dropbox can synchronize your files across all three systems as you make changes. Again, this one is free and can be installed on most operating systems.