New file on a server
I downloaded all files from my server to phpstorm. Then a colleague created a new file in the directory root on a serveк for me to edit in phpstorm. But it's not there - phpstorm doesn't know that this new file exists. So how do I know that a new file is created somewhere in a project server and get it's actual version to my local phpstorm project via sync? And also if some files have been deleted - how do I know this from phpstorm and make a decision to keep them or delete locally?
Please sign in to leave a comment.
Hello,
PhpStorm does not check automatically for file system changes of the remote server so if you want to get new files or changes, you need to right click the directory or file in the project tree and select Deployment > Sync with Deployed to %servername% or Sync with Deployed to... if you don't have a default server.
There you will have a Diff window where you can decide if you want to upload, download, delete or do nothing: https://confluence.jetbrains.com/display/PhpStorm/Sync+changes+and+automatic+upload+to+a+deployment+server+in+PhpStorm .
There are also settings available in Settings\Preferences | Build, Execution, Deployment | Deployment | Options that can help you when uploading to remote server - it can check the remote files on upload and warn you if there are some changes.
Thank you!