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
- create separate entries for your Dev and Staging servers
- change their mappings so that everyone gets to the correct deployment folder
- select your Dev server from the list of servers and press
β to select it - click
[apply] and [ok] - hack until you are happy with your update
- click
Git: β on the toolbar to commit to your local Git repository - In the
After Commit section, select your staging server for upload files to - check the box
[x] Aways use selected server - 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). )
source share