Answer the question
In order to leave comments, you need to log in
How to work correctly in phpstorm with a project and composer on a remote host?
Good evening.
PhpStorm 9. Here I created a project that lies on ftp. Phpstorm copied it to a local directory, now I include composer. I choose tools -> composer -> init composer, it offers to download composer. I download, select the root directory of the project for it. He appears in it. What's next? How to make the composer.phar file appear on ftp too? Well, yes, there is an option, right click on it in the left pane of the storm and select "Upload to Hostname", it will upload. OK. With single files, everything is clear, but how to make sure that what is installed via composer gets to FTP? If you do "Upload to Hostname" on the vendor directory, it will start uploading the entire directory to ftp, replacing the files, which will take a lot of time. Yes, and somehow track each changed file and click on it "Upload" every time not comme il faut. How can I make it automatically sync the changed files? Kind of like google drive. There are "Synchronize" items in the menu, but for some reason they do not produce any effect. I tried to click on the composer.phar file itself on the root directory itself, but it never appeared on ftp. In general, how do you do it?
Answer the question
In order to leave comments, you need to log in
If you understand the question correctly, then Tools->Deployment->Automatic upload (always) will help you, then any changes on the local machine will be synchronized with the server.
Here in this question unsubscribed on a similar occasion.
If you install dependencies via Composer on the local machine and upload them in this form to a remote host, you will have errors due to paths in autoloaders, because they will be different from your desktop. Or at least upload the dependencies and then build the autoloader on a remote host.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question