How to maintain a web project in synchronization with remote server?

4

I would like to know the best practices of keeping a web project up to date on a remote server. I'm starting a web project in which 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've tried keeping it synchronized on a netbeans with ftp, but sometimes it does not refresh. What is the best practice for this?

    
asked by anonymous 13.08.2015 / 19:31

3 answers

1

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

As a professional I have to do it in different ways. At the moment one of the projects I have in my hands develops with NETBEANS and it has a functionality that allows us to effortlessly manage a project locally and remotely, synchronizing with each step.

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

Using IDE as NETBEANS or others, our day-to-day life is much easier to develop code and to test it. In the end, much more productive.

    
14.08.2015 / 10:50
0

I do this with a project using git, you just get synchronized with the repository.

If you prefer to schedule on your server to synchronize from time to time.

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

    
14.08.2015 / 04:07
0

As @chambelix said there are many solutions, the one I'm using at the moment 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 server folders

Then there is a file called sftp-config.json which contains all the synchronization settings, so you can change it to see if it suits you better.

Contains:

  • Information about the server "host", "user", "password" (optional, if you do not put it, it will prompt you to enter it)
  • Save before uploading
  • When saving automatically upload
  • Regex with files and directories you do not want to sync, for The sftp-config.json file itself already exists, so that sent to the server.
  • File and directory permissions
  • Among other options, if you're using sublime text it's a must.

    See the link below

    link (has the same type of license as the sublime text

        
    14.08.2015 / 12:22