F
F
freelancer0072015-11-16 10:08:40
phpstorm
freelancer007, 2015-11-16 10:08:40

How do you work with phpstorm?

Hello!
A small project is located on a remote server, I have access to it via ssh, I just started to master phpstorm, to add a project in it, I indicate that the file is stored on a remote server (SFTP), I first add it in the new server setup program. The project is being created, everything is fine, I see all my files and directories. But the question is, if I create a file or directory via phpstorm, then it is immediately created on the server, and if I create a file or directory on the server (example: I connect to the server via ssh and do something from artisan, e.g. make: controller) then the controller does not appear in phpstorm! I have to restart phpstorm and only after that I see the newly created controller. Please share your experience, who and how solves this problem, and / or direct in the right direction, maybe I didn't include some setting or something. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2015-11-16
@freelancer007

Well, why only in one direction, in both directions completely,
if the file exists locally, but did not appear in phpstorm, then right-click on the folder and select the synchronize 'projectname' item,
if not, and everything is configured, then Sync with ---hostname-- -

S
Sergey, 2015-11-16
Protko @Fesor

data synchronization goes in one direction - from the host to the server.
In general - just do not edit the code on the server, make a copy locally and deploy the environment in vagrant for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question