How to automatically sync with a local folder / project in Aptana Studio 3?

I can set up a connection in project A between two local folders, from project A to project B. Manual upload / download is then possible using the context menu in project A. But what about automatic synchronization between two locations? I see that this is possible for protocols such as FTP, but not when the target is a local directory. Is this a missing feature, or is there a trick?

Edit : the answer / comments below explain that the Aptana sync function is not the complete synchronization logic, but the “load on save” function, which runs only when the file is saved in eclipse. I would advise Apatana to rename it accordingly, because it can be misleading. With this new understanding, it will be more clear below.

For more information about the story, here is my setup for one website:

A) Several development projects: one main PHP framework project (drupal), which links (as in connected networks with eclipse) several module projects. Kernel and module projects are separate eclipse projects with their own git repository cloned from upstream repositories at drupal.org. Thus, a module update can be carried out independently of other modules and from the kernel.

B) One development server project: contains files that will be deployed to the development web server. You need to be a copy of the main project mentioned above in A), except that the modules that are associated with folders in the main project of the source, but must become copies of simple files in this project. This project has its own git repository, different from the above repositories, and serves to create a snapshot of the entire website.

C) One production server project: contain files that will be deployed to a real web server. Uses a separate branch in the development server repo clone from B)

I was hoping that Aptana Studio would be able to automate the synchronization between A and B. Manual operations work fine, the associated resources are copied from A to B. However, I would like this process to be automatic, i.e. When files are modified in project A, they are automatically copied to project B.

+4
source share
1 answer

There is a workaround that uses an FTP server as a bridge:

  • Configure the connection from Project A to the FTP server (http://wiki.appcelerator.org/display/tis/FTP%2C+SFTP%2C+and+FTPS+Deployment) and make sure "Automatically synchronize my changes with the remote site ";

  • Configure the connection from Project A to Project B using the right-click menu Deploy> Connections> Add New Connection;

  • Right-click on Project A and select Properties> File Transfer, then in the Connect box, select Project B and select the Use Default Connection check box.

Now that you save the file modification to Project A, it should automatically load into Project B.

Hope this helps.

+8
source

All Articles