Conversation
Notices
-
Embed this notice
@matthias Hi, is there any doc / best practice available for setting up a dev environment?
I would prefer to have some kind of dev instance like friendica-dev.mbbit.de (not existing) but it needs to be accessed remotely by me since I have only shell access on the server.
Tried remote development feature of #PhpStorm but it keeps crashing, seems my resource on my vm server are too low for that purpose.
@hypolite pointed something out regarding local code which is synced to its test instance, but I do not know the suited tools for that?
-
Embed this notice
@marek Before using phpStorm for this purpose, I was using WinSCP which has a built-in "Keep remote folder up-to-date" feature. On Linux, you can either set up an rsync daemon or mount the remote filesystem locally. Not sure about MacOS.
-
Embed this notice
@marek Yes, but phpStorm can take care of this through the "Deployment" tool. You have to configure a remote connection (in my case, SFTP), then add folder mappings (which local folder maps to which remote folder) and you should be set.
There's a caveat: any file changed outside of phpStorm will not be updated on the remote side. This includes any file-changing scripts, git commands executed outside of phpStorm, etc...
-
Embed this notice
Thank You @hypolite , so you managed to use PhpStorm's remote dev feature? I think this is the way I'd like to do it too, once I have upgraded to a more performant server.
I know this feature with WinSCP will try it out now by myself, I guess it just needs to be connected and monitor the local dev folder, so it would upload changes files by my local IDE?