Hello. I am currently working on a website with another person. We both use ST2 as our editor of choice. Our dev website recently moved from a windows machine to a linux one. With windows it was fairly easy because since we were also using a windows machine we mounted our T: drives to be where the htdocs are and by using ST2 we could open files directly on the web server, edit them and save them.
Now that the files have moved to linux things are much more difficult. I am trying to find a solution to the following 3 problems.
- What’s a good way to use Sublime Text 2 to edit the files on the linux server? (Download entire site locally, install WAMP stack on my pc, open up firewall rules to connect my PC to our database server, make changes then FTP changes back to server? Sounds horrid!)
- What kind of methods are there to protect my teammate and me from writing over each others changes if we are both working on the site at the same time?
- After solving the above 2 problems, what would be the best method to then push updates from the dev web server to the production one?
It seams like there should be a plugin or program that I’m missing that can handle all of this somehow. I think git can take care of some of it but I’m not seeing any tutorials on using ST2 to automatically pull and push files using git, or finding out what happens if 2 people have the same file opened and editing.