E
E
edik892016-07-26 15:00:35
phpstorm
edik89, 2016-07-26 15:00:35

What is the best way to organize work with a remote server through phpstorm?

In general, the situation is as follows. There is a remote test server on which the project files are located. It has a created git repository. In the phpstorm settings, in the Deployment section, I added this server and I connect to it via sftp, everything works fine. I do not quite understand how in this case I should work with a repository on a remote server. Let's say I change a git branch and in this case the project files on the server are not automatically synchronized with the local copy. Actually, how best to organize the work in this case? Or is the only option is to deploy a local environment and work through git? If so, is there any ready-made environment for yii2 similar to Homestead for Laravel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Vapelnik, 2016-07-27
@edik89

this is how I worked with Yii(1). this is obviously wrong and inconvenient approach (I will say from personal experience). it would be correct to deploy everything you need locally with software deployment to a test server (if it is needed at all) after commits or merges (in general, at certain milestone development stages), and develop locally with a local repo of the git, through which you will push changes to remote. and use the remote repo for deployment. in the role of the remote repos, you can choose the same (one of):
if you have Windows, then you can raise the same OpenServer or Vagrant. if Linux, then anything from a local LAMP server to the same vagrant or docker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question