I
I
Igor2020-07-07 14:02:18
JavaScript
Igor, 2020-07-07 14:02:18

How to upload modified files to the server?

What are the options for uploading modified files to the server in automatic mode?

  • There is an sftp plugin for sublime, but it only fills when CTRL + S (that is, at the time of saving)
  • There is an sftp plugin for vscode
  • There is rsync for gulp, but I can’t set up auto upload, and I would like to upload those files that have changed and not all


What other options?

Generally interested in the 'correct' synchronization options

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Igor, 2020-07-08
@qud

It turned out to configure gulp-rsync

function uploadTask() {
  return gulp.src('build/**')
    .pipe(rsync({
      root: 'build/',
      hostname: '[email protected]',
      destination: '/path/build',
      exclude: ['**/Thumbs.db', '**/*.DS_Store'],
      recursive: true,
      archive: true,
      silent: false,
      compress: true,
      update: true
    }))
}

S
Stalker_RED, 2020-07-07
@Stalker_RED

If rsync is given the --updateor parameter -u, it will update only those that have changed.

P
Pigeon1235, 2020-07-07
@Pigeon1235

PHPStorm has the ability to upload files to the server

A
Arseny, 2020-07-07
Matytsyn @ArsenyMatytsyn

The "correct" methods of uploading to the server are continuous integration / delivery (CI / CD).
Edge - get handles / scripts in read mode from the repo.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question