{"id":20932,"date":"2018-12-05T15:12:28","date_gmt":"2018-12-05T15:12:28","guid":{"rendered":"https:\/\/blog.jetbrains.com\/phpstorm\/?p=13780"},"modified":"2024-01-09T14:51:24","modified_gmt":"2024-01-09T13:51:24","slug":"deployment-to-multiple-hosts","status":"publish","type":"phpstorm","link":"https:\/\/blog.jetbrains.com\/pt-br\/phpstorm\/2018\/12\/deployment-to-multiple-hosts","title":{"rendered":"Deployment To Multiple Hosts"},"content":{"rendered":"<p>With PhpStorm\u2019s deployment capabilities, you can copy files and folders to remote servers. As a destination, you can use FTP\/SFTP\/FTPS as well as a local or mounted folder.<\/p>\n<p>You may often need to deploy to multiple servers: For example, if you have several instances of an application, or you need to deploy parts of an application to different servers. Previously, you would need to repeatedly upload your files to each server separately. In PhpStorm 2018.3, we\u2019ve added server groups to address this.<\/p>\n<p><!--more--><\/p>\n<p>Now you can add as many groups as you wish with an arbitrary number of destinations in each group. Then you can deploy your files to all servers in a group simultaneously, in one click!<\/p>\n<p>To get started, navigate to <em>Settings \/ Preferences | Build, Execution, Deployment | Deployment<\/em> and add a server group, just like you would do with a regular server:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-13781\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-deployment_add_group.png\" alt=\"deployment_add_group\" width=\"800\" \/><\/p>\n<p>Next, create some servers in a group, or, to add an existing server, drag it into the group:<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-13782\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-deployment_groups_server.png\" alt=\"deployment_groups_server\" width=\"800\" \/><\/p>\n<p>That\u2019s it, you are now ready to deploy to the entire group at once:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-deployment_run_thumbnail.png\" alt=\"Run deployment\" width=\"800\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-deployment_run.gif\" \/><\/p>\n<p>Common deployment tasks, such as uploading files automatically or after a commit, is now available for server groups, too.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-13785\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2018\/11\/phpstorm-deploy_group_after_commit.png\" alt=\"deploy_group_after_commit\" width=\"800\" \/><\/p>\n<p>Let us know what you think in the comments, and <a href=\"https:\/\/www.jetbrains.com\/help\/phpstorm\/2018.3\/deploying-applications.html\" target=\"_blank\" rel=\"noopener\">refer to PhpStorm Help<\/a> to learn how to configure remote locations and discover more features.<\/p>\n<p><em>Your JetBrains PhpStorm Team<\/em><br \/>\n<em> The Drive to Develop<\/em><\/p>\n","protected":false},"author":745,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","categories":[808,907],"tags":[716,379],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20932"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/types\/phpstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/users\/745"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/comments?post=20932"}],"version-history":[{"count":1,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20932\/revisions"}],"predecessor-version":[{"id":431953,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/phpstorm\/20932\/revisions\/431953"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media?parent=20932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/categories?post=20932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/tags?post=20932"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/cross-post-tag?post=20932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}