How to keep a web project in sync with a remote server?

Asked

Viewed 580 times

4

I would like to know the best practices of keeping a web project up-to-date on a remote server. I am starting a web project where I need to keep it on a remote server, and from my local server I keep synchronized all the files on the server, for better update. I tried to keep it synchronized in a netbeans with ftp, but sometimes it doesn’t update. What’s the best practice for this ?

  • I used to do it in Dreamweaver. But I hate Dreamweaver, so I don’t use it anymore. I sync it manually.

  • My localhost is for development only, apache is running on a remote server (VPS), I want to keep them synchronized with my localhost and make updates that are done directly on the server.

  • 1

    a very easy-to-use tool is the GIT version control they have a complete tutorial in English, when using remote repositories you synchronize with a single command, and there is integration with several Ides

3 answers

1

Nowadays there are many solutions that allow us to respond to project synchronization remotely and online.

As a professional I am obliged to do it in various ways. At this moment one of the projects I have in hand develop with the NETBEANS and this has a functionality that allows us to effortlessly manage a project locally and remotely, syncing with each step.

You can choose whether to sync when you save the file or every run of our project.

Using a IDE as NETBEANS or others, our day-to-day life is much easier when it comes to developing code and testing it. In the end, much more productive.

  • Use Netbeans with SVN, and configure in the project properties "Run Configuration" the remote connection to upload the file :)

0

I do this with a project using git, just keep syncing with the repository.

If you prefer make a Schedule on your server to sync from time to time.

There are languages like Node.js that you can set up a task to do this remote as well.

0

As @chambelix said there are many solutions, the one I’m using right now is Sublime Text 2 + SFTP

Allows several interesting options:

  • Local Synchronization > Server
  • Server Synchronization > Local
  • Synchronization in both directions ( never tried )
  • You can browse to list the server folders

Then there is a file called sftp-config.json that where all the synchronization settings are, then you can change to see which one best suits your requirements.

Contain:

  1. Server relative information "host", "user", "password" (optional, if you do not place it will show a prompt to place it)
  2. Save before uploading
  3. When saving automatically upload
  4. Regex with files and directories you don’t want to sync, by default already comes the sftp-config.json file itself, not to be sent to the server.
  5. File and directory permissions

Among other options, if you’re using sublime text it’s a must.

See the link below

http://wbond.net/sublime_packages/sftp (has the same type of license as sublime text

Browser other questions tagged

You are not signed in. Login or sign up in order to post.