PhpStorm works with multiple servers

I am working on a project that runs on multiple servers with the same files on each server. I use PhpStorm and want to upload files to each of the servers, as I now do for each.

Does anyone know if this is possible?

+7
source share
5 answers

You can create a server group and move all server elements to a server group. Then, when uploading to the server group, your files will be downloaded to all server elements in this group.

I have PhpStorm 2018.3.2 on macOS and it has such a nice feature. Hope I can help you.

enter image description here

+1
source

This is currently not possible - you can have only one (or none) deployment entry, which can be set as the default value for this project .. and automatic deployment only works by default.

The same with manual - only one at a time, unfortunately.

Star / vote / comment on the desired tickets to receive notification of progress (since it is standing right now, there is no movement in this direction).

+8
source

If you set the option "Deployment path to server ..." on the "Mapping" tab in

Tool β†’ Deployment β†’ Settings ...

you can see more than one server when choosing

"Tools β†’ Deployment - Downloading to ..."

. Works for me with phpStorm 10.

0
source

configure TWO (s) ftp servers with the same hosts and credentials, but different mappings. You will have the opportunity to select one of them as the default server, and you will be able to select the desired server (right-click) deploy-> upload-to ... (Strg-Alt-Umschalt-X) or the default server. Seen in phpstorm 10.,.

0
source

If you have configured multiple deployment servers and use Git, you can deploy your development server in real time and deploy commits to the second server, setting up the server to deploy during commit. I use this for direct editing on local instances of lxd, and then commit the working change sets to the staging server for verification before release builds.

If you have not done so already, install Git and create local storage in your project folder.

File->Settings->Build. Execution, and Deployment->Deployment

  1. create separate entries for your Dev and Staging servers
  2. change their mappings so that everyone gets to the correct deployment folder
  3. select your Dev server from the list of servers and press βœ“ to select it
  4. click [apply] and [ok]
  5. hack until you are happy with your update
  6. click Git: βœ“ on the toolbar to commit to your local Git repository
  7. In the After Commit section, select your staging server for upload files to
  8. check the box [x] Aways use selected server
  9. click [commit]

Each time you commit a full set of changes, it will be synchronized with the intermediate server.

Another thing you can do is configure the post-commit action in your git config for rsync tree on any number of servers. This will not be for every save (which would be crazy if you developed and edited several working servers in real time), but it will be for each individual adoption (great for patching and managing multiple server configurations). )

0
source

Source: https://habr.com/ru/post/1204062/


All Articles