Phpstorm setting locally modified code synchronization to the remote server:
Set inside Search "Deployment", select + sign, then select SFTP:
Fill in the information for the remote host:
Then select mappings, fill in the local code path and the remote host code path. Note: The remote path is relative to the path that was previously set for root path.
Then select the tools->deployment of the menu bar, tick Automatic Upload (auto upload), indicating that the local code will be automatically uploaded to the remote server as long as changes are saved.
Next Test, after the changes in the project to save, the following will appear the following prompt:
At this time to the server on the corresponding directory to view the file, has been modified.
This method is convenient for running code only on the online environment!
"Original" Phpstorm local modification sync saved to remote server