symfony - 通过 Easy Deploy Bundle SSH 部署 Symfony
问题描述
我正在尝试使用 Easy Deploy Bundle 部署我的 Symfony 应用程序。但是在运行命令php bin/console deploy stable
错误发生后:
The command "cd D:\MySymfonyApp && where ssh" failed.
Exit Code: 1(General error)
Working directory: D:\MySymfonyApp
Output:
================
Error Output:
================
INFO: Could not find files for the given pattern(s).
我认为 ssh 配置没问题。(cd D:\MySymfonyApp && where ssh
回报C:\Windows\System32\OpenSSH\ssh.exe
我尝试在 Windows 10 上运行它。(symfony 4.1)
解决方案
似乎您的会话变量未设置并且未找到 ssh 二进制文件。
您可以修复它们或...
我的建议是在你的 Windows 10 中安装 ubuntu 的终端。
你会在 /mount 找到你的文件
cd /mnt/d
我目前正在使用 deployer.org,我对它非常满意,它有很多 Laravel/Symfony 的接收者,你可以在新部署完成时触发 Telegram 或 Slack 通知。(还有很多东西)
推荐阅读
- sql - 将团购与窗口功能相结合?
- javascript - 在图像中查找十六进制颜色和 X、Y
- r - 循环遍历 R 中的空数据框并将值分配给列
- python - 提取特定文本时出现问题(自动交易程序的请求令牌)
- pyspark - 在 pycharm 中运行 pyspark 程序时出现 Pyspark 错误
- jquery - JQuery 修改一个克隆的变量(永远)
- java - 使用屏幕控制器进行角色移动不适用于 libgdx
- html - 为什么本地存储值会覆盖来自同一来源的不同 iframe?
- ios - 如何在领域中的查询本身中使用查询结果
- amazon-sagemaker - 将 Sagemaker 结果与输入列相关联