Phpstorm Sshfs



Problem

Typically, I would mount the remote machine through SSHFS in Windows 10, and then work from the mounted directory. This has a couple frustrating problems. SSHFS typically dies when not in use for awhile, so I have to re-mount the drive, which freaks out PHPStorm and I have to reopen the project. SSHFS with IntelliJ is really slow, please provide a remote development mode as VSCode did! Robert Nasiadek Created May 17, 2020 15:27. Comment actions Permalink. Working on a Go project that uses hardware attached to a RPi. Without remote development this is a major PITA:-(3. Unfortunately I would then lose the use of PHPStorm and all the benefits a solid IDE brings to Drupal 8 development. Enter sshfs # OSX brew install sshfs # RHEL yum install fuse-sshfs # Debian/Ubuntu apt-get install sshfs. Create a host in /.ssh/config to make life simple. Hi, I am trying PhpStorm 2019.1.3 right now and I find a issue with your product that needs to addressed as soon as possible. I am using VirtualBox for my development works and that is why I want to use PhpStorm with remote hosting environment So I have created a remote node.js project from exiting files on my remote host.

The symptom is that while editing the IDE freezes, somehow the keyboard nolonger responds. Two years ago at Tweakers there was luckily someone usingUbuntu who could tell me right away how to fix it ('Just killall -9ibus-x11', and it would magically continue to work). Now more recently atAutoTrack--where I now work--a collegue encountered the same issue. Luckily Iknew the fix this time.

The fact that I personally know at least five different individuals who spenttime fixing this makes me guess there are a lot more people still. Hence thisblogpost with some keywords that will hopefully lure others into this fix...

Fix

According to this bug report:

Or use this one:

I have no idea what ibus exactly is, and I don't really care Also it may be possible to just uninstall ibus, I didn't try this,but I can imagine the following to work..

Rode the tunnel server to xdebug, I padkontrol the remote server to the local machine using sshfs. And all anything, but can't configure the project or to create. If you choose the setting 'remote web server, files on sftp', it creates a project, then hangs for 10 minutes, and eventually starts why it to copy files from server to local machine.
If you choose the web server is local, just do something all sad, debug icon is not, although the php debug settings are made.
If you choose what files are stored locally, and the web server to configure then, it is just all sad.
Explanatory manual can not find. Help plz.

Related questions

  • 3Woocommerce how to create a product inside the product?
  • 1Why are unable to access your docker container from mysql?
  • 1How to get a list of all users, not just admins WP Rest API?
  • 0Like in FaceBook to set the permission to enter with another IP?
  • 1Why not correct Belitsa project in Unity?
  • 2Whether the MTA to sort out the MX for a user search?
  • 1How to save json CRUD with $resource (angularjs)?
  • 0How to generate the next free element?
3 answers
Solution
Something you randomly do.
have potentioal the remote server to the local machine using sshfs

If you choose the setting 'remote web server files via sftp'

These two phrases contradict each other.
In the first case, the client - dev-machine and the second remote. Are two different things.
Of course, it will not work with this approach.
Explanatory manual can not find. Help plz.

Need a workflow to put and not to think of the perversion and try to deal with them.
'These two sentences contradict each other.
In the first case, the client - dev-machine and the second remote. They are different things'
Actually no. I have already answered above. In the first case, PHPStorm deflate from the server files to make a local copy. In it we put breakpoint and debarim. NOT to make a local copy, I'll mount the remote folder with the site, as a local, preventing draining. commented on July 15th 19 at 23:52
so, you mount a remote folder as a local? Then you have debajit this remotely - after all code is executed remotely.
Immediately warn that It will slow down (because of the impossibility of monitoring such FS), and will periodically decency. commented on July 15th 19 at 23:55
: Right. That and trying debajit remotely. So threw the tunnel to the server xdebug. Left properly configure phpstorm. Monitor this FS the way she can, but podlagivaet. But how else? commented on July 15th 19 at 23:58
: why tunnel?
> Monitor this FS the way she can, but podlagivaet.
Can't monitor, so pereskazyvat. It is much slower.
> How else?
Connect the server to the dev machine.
Normally works only when the server is in dev on dev machine. But the method is very good, others were not around. commented on July 16th 19 at 00:01
: Tunnel to connect to xDebug on the remote server. Is there another way?
'Normally works only when the server is in dev on dev machine.' when adminisi 20-30 sites, and sometimes it's 'add a couple of buttons to' deflate again the site does not want commented on July 16th 19 at 00:04
: the tunnel is needed only if you are in the same grid.
> when adminisi 20-30 sites, and sometimes it's 'add a couple of buttons to' deflate again the site does not want
You can automate the process. For example, using vagrant.
The installation time of the project, after pressing just one button - 3 minutes. commented on July 16th 19 at 00:07
: How vagrant will save from the download site from server to local machine to dev? commented on July 16th 19 at 00:10
: like this server? From git. commented on July 16th 19 at 00:13
: Thank you. Look carefully. And just for virtualke will not differ from the remote machine after all. Well, the local IPS and use? commented on July 16th 19 at 00:16
: the method of synchronization of the development environment and the execution environment the most comfortable.
The server is in virtual reality and works with disk of your desktop laptop.
Besides, in order to work on the website, you only need access to git. This greatly simplifies the infrastructure. commented on July 16th 19 at 00:19
: sounds good (still have the manual for it to find), but what about the Bitrix? Well, back to the subject: for comp dev is no different from the remote machine after all. Yes, it is on the disk, but it is the external environment and xDebug will have to just connect by IP through the tunnel. commented on July 16th 19 at 00:22
: tunnel is not required when the machines are in the same grid. And so they see each other.
The dev is always in mesh one with the host (if you specifically don't break).
> but what about the Bitrix?
What's special about it? commented on July 16th 19 at 00:25
: the tunnel is not needed if xDebug config to explicitly specify the IPS of the dev-machine it?
>And what's special about it?
License to swear needs commented on July 16th 19 at 00:28
: Can you advise the material which read like the entire site to sync with git and so easy on the local machine to carry. And then Google something distinct gives, probably the query is not the drive commented on July 16th 19 at 00:31
no need to specify IPS. And the tunnel is not needed.
> the whole website to sync with git
With git do not need to 'sync'. It's just a version control system for source code.
You can start from here: https://www.codeschool.com/learn/git
> License to swear needs
Zero. commented on July 16th 19 at 00:34
OK, thank you. You wrote above 'method of synchronization of the development environment and the execution environment the most comfortable.' I understand that in the Gita the website is stored and synchronized with the execution environments and development. commented on July 16th 19 at 00:37
: work on the website is in git.
When you need to upload the website to the server, then take that version from git, collect and pour. commented on July 16th 19 at 00:40
under the environment and development ispolneniya I meant shared files in the IDE and virtual reality. commented on July 16th 19 at 00:43
: well that is always there is three copies of the site. On the server, in the Gita, and in V-world? commented on July 16th 19 at 00:46
there is always one copy of the site in production.
In the Gita is not a site copy, and simply the source code files.
On virtualcad developers copy website live only when they are staffed with these developers.
Still it is desirable to have a CI, and short-term (e.g., 15 minutes) live copy of your site on those versions that have recently fine-tuned by programmers. commented on July 16th 19 at 00:49
>The Gita is not a site copy, and simply the source code files.
in the case of Bitrix, isn't that the same thing?
>On virtualcad developers copy website live only when they are staffed with these developers.
And if you work daily?
>Still it is desirable to have a CI, and short-term (e.g., 15 minutes) live copy of your site on those versions that have recently fine-tuned by programmers.
Just do not understand commented on July 16th 19 at 00:52
:
> in the case of Bitrix, isn't that the same thing?
Not really. In Bitrix admin panel you sometimes through running the sources from this practice should be abandoned. Besides, in git sources versionyou.
> And if you work daily?
It does not matter. Computers do you shut down at night or do other projects.
> Just do not understand
https://ru.wikipedia.org/wiki/Непрерывная_интеграция commented on July 16th 19 at 00:55
>In Bitrix you sometimes through the admin running the source code from this practice should be abandoned. Besides, in git sources versionyou.
Admin rules files. Files then commit in git. And from it already in production. No?
>It doesn't matter. Computers do you shut down at night or do other projects.
well, I mean that if you work on 10-20 projects each copy, and under each V-world.
>CI
Think here https://habrahabr.ru/post/75990/ this is what is described commented on July 16th 19 at 00:58
> minka rules files. Files then commit in git. And from it already in production. No?
It is possible and so. But it is not convenient when you can edit directly from the IDE.
> well, I mean that if you work on 10-20 projects each copy, and under each V-world.
You start a new path only those with whom I work. All you have not enough resources.
> Think here https://habrahabr.ru/post/75990/ this is what is described
No. CI is a process, and it has a separate program - the CI server. It may be Jenkins, TeamCity, Bamboo, etc. commented on July 16th 19 at 01:01
Clear-clear. OK. Thank you! Back to the subject. Copied to dev project. For example it is 192.168.1.3, and the computer 1.2. In virtual reality of course is php+xdebug. How then it is better to connect in PhpStorm? As the remote server to choose, right? Locally it is on a computer should be commented on July 16th 19 at 01:04

Phpstorm Ssh Remote

files are locally.
In virtual reality they are in a shared folder.
To configure xdebug so: confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm commented on July 16th 19 at 01:07
: good afternoon. Put git, vagrant. Began to understand. Downloaded files from production to your local computer. Connected git, filled to the server Gita all scripts. Put vagrant. But I do not quite understand do I need one if I'm the only developer? Another question about the deployment of 3 minutes. The algorithm is this? Sucking Gita files along with the config vagrant. Do vagrant up and ready to go?
Is it possible to make a universal template in vagrant to each time(for different projects) again not to put Apache and so on?
You wrote that to work on the website only need access to git. But then how to push to production server without knowing the ssh details?
With debug understood commented on July 16th 19 at 01:10
> But I do not quite understand do I need one if I'm the only developer?
Of course you need. Why would you think that one person can do without it?
> The algorithm is this? Sucking Gita files along with the config vagrant. Do vagrant up and ready to go?
Yes.
> Is it possible to make a universal template in vagrant to each time(for different projects) again not to put Apache and so on?
Need.
You can start to get something ready. On the Internet this much. I recommend to start with simple shell scripts.
> But then how to push to production server without knowing the ssh details?
Work != publication.
Programmers usually no one gives access to the production.
A lot of ways actually. Can some hipster solution like capistrano to use, CI (but for one person it's already too much). commented on July 16th 19 at 01:13
:
>You can start to get something ready. On the Internet this much. I recommend to start with simple shell scripts.
For vagrant or separate? I do not quite understand
More questions:
1) Apparently has not yet reached, but is there a way to exclude folders from the Gita, usually the directory with the photo/file it is not needed
2) do I Need a server for git, in principle, if you're working alone on a project and can be downloaded from Gita and production in a LAN, modify, test, and fill from the local round of production? commented on July 16th 19 at 01:16
> For vagrant or separate? I do not quite understand
For vagrant.
> usually the directory with the photo/file it is not needed
No need to ignore. Learn to use git.
> 2) do I Need a server for git, in principle,
Yes, it's more convenient. There are free services, such as bitbucket. commented on July 16th 19 at 01:19
:
I will look thank you.
And the server I found the best solution - git server for synology (nas). Moreover, there is such a wonderful thing as xpenology
Another question what to do with the config file(database settings for example)? Also to exclude and manually pour on the LAN modified copy? commented on July 16th 19 at 01:22
And what about mysql? commented on July 16th 19 at 01:25
to komitite templates, configs, and vagrant copy them with normal names and insert them the right data.
MySQL - migration. Usually part of frameworks. commented on July 16th 19 at 01:28
: thank you very much! Went on to study commented on July 16th 19 at 01:31
: Faced with a problem. Put git locally and on the server. Made improvements locally, commit, push to server production. However, the file changes are not applied. Helps the team on the server 'git reset --hard' but I think it's not quite right. And how to do? commented on July 16th 19 at 01:34
git pull
This is the wrong way, but will work.
Start to study then the tool capistrano. commented on July 16th 19 at 01:37
:
Produces this error. the utility will Google
# git status
# On branch master
nothing to commit (working directory clean)
# git status
# On branch master
# Changes to be committed:
# (use 'git reset HEAD ...' to unstage)
#
# modified: index.php
#
# git pull
fatal: Where do you want to fetch from today?
# commented on July 16th 19 at 01:40
: Google, this is a typical question. commented on July 16th 19 at 01:43
: Google. but always write about adding the REMOTE server. and I have something local and in the same folder ( commented on July 16th 19 at 01:46

Phpstorm Ssh Console

: found an elegant solution:
create the file hooks/post-receive
With such content:
#!/bin/sh
GIT_WORK_TREE=/var/www/www.example.org git checkout -f
$ chmod +x hooks/post-receive
and now, after push the files updated in the directory commented on July 16th 19 at 01:49
+ sshfs

the remote web server files via sftp

I hope you will understand that it is different things?
If you choose the web server is local, just do something all sad, debug icon is not, although the php debug settings are made.

So not done if not working. But in the case of remote debug you in the simplest case, you need to have white IP and prosrochennoy on the router port. Or are forwarding the port via SSH. Either configure the debug proxy.
If you choose what files are stored locally, and the web server to configure then, it is just all sad.

Cm. above.
Explanatory manual can not find. Help plz.

Ready-made manual for each configuration there never will be. Take similar the manuals, see how everything works, to delve, to combine under your option.
And in General, why do you debug remote server via ssh?
'I hope you understand that these are different things?' - what is it different things? PHPStorm when working with a remote web server, download files to local machine. To avoid this I mount the files from the North via sshfs as if they are local, in order to avoid copying
'Or are forwarding the port via SSH' - and done. Furthermore works without problems with the same macgdbp
'And anyway, why would you debug a remote server via ssh?' how else debugit PHP VPSке?
'Ready-made manual for each configuration there never will be.' - I have a trivial problem, and trivial soft, I think a lot of people doing so and asked. Other ways you can't even imagine (well, git does that) commented on July 15th 19 at 23:54
Phpstorm Sshfs
PHPStorm when working with a remote web server, download files to local machine.

If you do not ask, do not download.
and it is made. Furthermore works without problems with the same macgdbp

Another proof that you are doing something wrong.
how else debugit PHP VPSке?

Why debajit PHP on VPS-ke?
I have a trivial problem, and trivial soft, I think a lot of people do that

I think most of them will not rent a VPS to debug PHP. Most (right most) uses either the locally installed stack (you can do it without web server using php -S) or new path, or containers/docker. commented on July 15th 19 at 23:57
: Yes, like not asking, but still downloads. And bypass this step in any way. When creating the project, click 'Create New project from existing files' and follow the steps.
'Another proof that you are doing something wrong.' I agree. I say that the problem is in the creation/setup project in the storm.
'Why debajit PHP on VPS-ke' - where the client's website lies. Copy to a LAN is not always possible, given license for some CMS. When 2-3 dozen sites, you do not want to swing in the LAN, especially when on a project a few people working. (have to do it every time). commented on July 16th 19 at 00:00

Phpstorm Ssh Jump

Yes, like not asking, but still downloads. And bypass this step in any way.

What do you mean nothing? And to make the mapping to the remote directory after you create the project and just use upload when needed?
Copy to a LAN is not always possible, given license for some CMS

Even for the same Bitrix has a license for development. For other CMS must be something like that. And while you debate directly on the website customers is the removal of the tonsils through a hole in another part of the body.
When 2-3 dozen sites, you do not want to swing in the LAN, especially when on a project a few people working.

Well, do not want to - suffer, what can I say. commented on July 16th 19 at 00:03
And I would come to work with MacGdBp, but for some reason stoparic at the beginning, not at the breakpoint. Although in the settings the checkbox is removed.

Phpstorm Ssh

Find more questions by tags