liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 260 forks source link

Run command on remote after upload/sync is finished #763

Open mityukov opened 4 years ago

mityukov commented 4 years ago

Is this a similar or duplicate feature request?

Is your feature request related to a problem? Please describe. There is OPCache used on the production server. So, it's not enough to just upload your changes — you would also need to run a command to reload the cache in order to have changes applied.

Describe the solution you'd like It'd be great to have a config option to put a command to execute each time a file was uploaded (or after a "sync to remote" was finished). I understand it should be possible to do for SFTP connections. Example:

{
  ...
  "uploadOnSave": false,
  "runCommandOnRemote": "fpmreload"
}

Does this project help you?