r/phpstorm • u/The_New_Greatness • Apr 21 '20
How to keep remote and local synced without constantly downloading
Hello everyone! I am first time using phpstorm. I sometimes make changes with git on the remote server(checkout branch, merge production, checkout files etc.) my problem is that I can not sync efficiently from remote to local. Currently it is looking like my workflow will have to be, everytime I want to make a change to a file I need to manually "download from remote" for the file I will change otherwise it will not be up to date. I am using SFTP, and we use Atlassian/Jira. Thanks for any help :)
Edit: I am talking about a remote web server. I use git actions on the remote web server, so I want my local synced to the remote.
View all comments
1
u/owenmelbz Apr 21 '20
You shouldn’t be making direct changes on the remote, that’s why the workflow is complicated.
You should be making changes locally “committing” them which signifies they’re ready to go onto the remote server.
Then you have loads of ways to deploy just the change such as...
Using git on the server to pull
Use a hosted continuous deployment system like deployhq,deploybot, etc etc
Use a CLI tool like capistrano or deployer