Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect magento container(Remote Host) in PHPSTORM #1048

Open
duddehub opened this issue Jan 23, 2024 · 2 comments
Open

Can't connect magento container(Remote Host) in PHPSTORM #1048

duddehub opened this issue Jan 23, 2024 · 2 comments
Labels
help wanted stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@duddehub
Copy link

Fresh installation - can't connect to the Remote Host.
I already followed the module documentation - "Copy compose.dev-ssh.yaml to compose.dev.yaml before installing Magento to take advantage of this setup. Then, create an SFTP connection at Preferences -> Build, Execution, Deployment -> Deployment. Connect to localhost and use app for the username & password." but without results. Somebody knows how to connect?

@sdouma
Copy link

sdouma commented May 4, 2024

I know this is 4 months later but see my ticket #1148
Try this,

  • Copy this DockerFile
  • In PHPSTORM open the file and at the top you should see a run button.
  • Click the run button and a dropdown button should appear, click edit and name/tag it
  • Click the run button and in the dropdown click run
  • After building it go to compose.dev.yaml and edit the image to your newly built image using the tag

I.E

    image: temp-ssh-image:latest
    ports:
      - "22:22"
    volumes: *appvolumes

Copy link

dosubot bot commented Feb 6, 2025

Hi, @duddehub. I'm Dosu, and I'm helping the docker-magento team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You experienced trouble connecting to a Magento container as a remote host in PHPStorm after a fresh installation.
  • You followed the documentation for setting up an SFTP connection but faced issues.
  • Four months later, sdouma suggested a solution referencing ticket SSH Docker Image has issues #1148.
  • The proposed solution involved using a specific Dockerfile and modifying the compose.dev.yaml file.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the docker-magento repository. If so, you can keep the discussion open by commenting on this issue.
  • Otherwise, this issue will be automatically closed in 30 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

3 participants