L
L
Lev Rozanov2021-03-02 22:32:39
PHP
Lev Rozanov, 2021-03-02 22:32:39

Composer and PhpStorm over FTP/SSH?

Good day!

I started to make a project in MAMP, now I decided to take it to virtual hosting.

Please explain on your fingers: how can I work the same way on a virtual hosting via FTP (I can connect SSH if necessary) using PhpStorm and composer?

I would like this: I decided to load something through composer - I added it to composer.json, the data was loaded locally. Click "Synchronize" - the files have been uploaded to the hosting. Maybe everything will work anyway, but I'm dumb as a bunny. But googling, I saw that there may be some problems with dependencies.

Or it could be like this: from the paragraph above - I did everything, and on the hosting I additionally called the processing of composer.json

In general, please help. Thanks in advance!

PS Do you need to upload composer.phar to the hosting at all or is the vendor folder enough?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2021-03-03
@MetisKot

https: //www.jetbrains.com/help/phpstorm/uploading -...
Tools -> Deployment -> Configuration
Add a new ftp/sftp connection and mark it as "default"
Tools -> Deployment -> Options
All dependencies that are installed locally can simply be uploaded to the server along with the rest of your code. That is, you develop locally, install dependencies through composer, and upload your code and folder to the server/vendor/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question