开发者

What is the simplest way to work on a project from different computers?

开发者 https://www.devze.com 2023-04-10 19:33 出处:网络
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 comput

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 som开发者_StackOverflow中文版e 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.


I think you should use something like SVN, GIT, Mercurial and so on. I suggest you this software to manage your project:

Tortoise


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.


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.


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:

  1. Shared code between all environments, always up to date
  2. Protection against data loss and error - if something major breaks revert to a working copy

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号