U
U
Urukhayy2017-10-01 09:35:56
linux
Urukhayy, 2017-10-01 09:35:56

Is it possible to use SSHFS to organize a project view in SublimeText 2?

There is a folder on the server. It is necessary that on the local computer, through the SSH tunnel, you can see and change the contents of this folder, as if it were local. It is also required that:
1. All changes are synchronized. For example, if a file is added to this folder on the server, then it must be updated locally, through the tunnel. And vice versa, if changes were added to the file locally, it should be updated on the server as well.
2. So that in SublimeText 2 this folder can be opened as a project with subdirectories, and project files can be opened using the "Explorer" plugin.
3. To be safe and impossible to lose changes due to an error in synchronization.
Can this be arranged? And what are the potential pitfalls?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Wolf, 2017-10-01
@Urukhayy

SSHFS, as well as its brother FTPFS , make a remote resource available to you (and applications, respectively) in the same way as a local folder, with all the consequences. If you have ever worked with Windows network drives, then it will not be difficult for you to imagine what it will look like in the end.

So that in SublimeText 2 this folder can be opened as a project with subdirectories, and project files can be opened using the Explorer plugin.
If you can open a local folder in this way, you can too via SSH/FTP-FS.
All changes are synchronized.
As for "synchronization" - it's not entirely clear in what context you want to get it, but, as far as I remember, RSync is responsible for synchronizing changes.
To be safe and impossible to lose changes due to an error in synchronization.
For these purposes, the entire civilized world has long been using Git, shared via SSH, HTTP(S) or some other protocol, without additional perversions. The use of this approach gives an almost 100% guarantee that the changes will not be lost anywhere, although neither Git nor the methods you described protect against temporary desynchronization of the file system, in other words, there are no "transactions" at the file system level either there or there.
Can this be arranged?
You can, but if you specifically need Git, I would not reinvent the elephant, and share the Git repository "as expected" if you need to collaborate with the project. Git guarantees you that changes to the repository will be made in the order in which they are received and will be synchronized with each other.
PS Including, for these purposes, there are a number of ready-made solutions for this business, both "online" (BitBucket, GitHub, etc.), and solutions that you can install locally and even for free, for example GitLab.

A
Arman, 2017-10-01
@Arik

It's possible, but I don't think it's worth it. All changes in production must be recognized (fixed), but why is your game with button colors in production?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question