{"id":16767069,"url":"https://github.com/assert6/hyperf-windows-dev","last_synced_at":"2025-10-04T20:51:05.348Z","repository":{"id":55082198,"uuid":"305306847","full_name":"assert6/hyperf-windows-dev","owner":"assert6","description":"Mac/Windows 下正常使用Docker 开发Hyperf","archived":false,"fork":false,"pushed_at":"2024-06-13T10:53:31.000Z","size":292,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-14T06:08:20.514Z","etag":null,"topics":["docker","hyperf","macos","windows"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assert6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-19T07:59:13.000Z","updated_at":"2024-06-13T10:53:34.000Z","dependencies_parsed_at":"2024-06-13T13:27:21.781Z","dependency_job_id":"4d577532-103c-43bb-a5a4-ce49dc006336","html_url":"https://github.com/assert6/hyperf-windows-dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assert6%2Fhyperf-windows-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assert6%2Fhyperf-windows-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assert6%2Fhyperf-windows-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assert6%2Fhyperf-windows-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assert6","download_url":"https://codeload.github.com/assert6/hyperf-windows-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221820606,"owners_count":16886222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","hyperf","macos","windows"],"created_at":"2024-10-13T06:08:22.699Z","updated_at":"2025-10-04T20:51:05.269Z","avatar_url":"https://github.com/assert6.png","language":"Dockerfile","readme":"# hyperf-windows-dev\n因`Docker` 底层原因, `Windows` / `Mac` 下挂载磁盘启动`Hyperf` 非常慢, 这里提供一个思路: 不挂载磁盘, 容器内部署`SFTP` 配合ide同步代码\n\n(新版Docker 配合WSL2 已经解决文件共享问题, [推荐使用](https://docs.docker.com/docker-for-windows/wsl/))\n\n1. `docker pull zcmzcm/hyperf-windows-dev`\n\n2. 打开菜单`Run/Edit Configurations...` \n配置`Docker`, `Image`填`zcmzcm/hyperf-windows-dev`, `Bind ports` 22端口为容器`SFTP`端口(写死), 822为向外暴露端口, 不可重复\n ![avatar](./src/1.png)\n\n3. `Shift + F10` 启动容器, 留意这一步中`Attached Console` 窗口, 最后一步在这里输入\n \n4. 菜单`Tools/Deployment/Configurations...` 配置`SFTP`, 填写上一步暴露的822端口, `Password`任意填写 \n![avatar](./src/2.png)\n\n5. 其中`Mapping/Devployment path`不要选根目录(例`/home`), 与最后一步相同即可\n![avatar](./src/4.png)\n\n6. 1选中根目录, 2勾选`Automatic Upload`, 3上传文件到容器\n![avatar](./src/3.png)\n\n7. 在第2步容器窗口中运行`hyperf-watch -c --dir /home`\n\n8. 启动成功后修改`Tools/Deployment/Options...`如图所示, 方便切换分支\n![avatar](./src/5.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassert6%2Fhyperf-windows-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassert6%2Fhyperf-windows-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassert6%2Fhyperf-windows-dev/lists"}