首页 > 解决方案 > 通过 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)

标签: symfonysshsymfony4

解决方案


似乎您的会话变量未设置并且未找到 ssh 二进制文件。

您可以修复它们或...

我的建议是在你的 Windows 10 中安装 ubuntu 的终端。

你会在 /mount 找到你的文件

cd /mnt/d

我目前正在使用 deployer.org,我对它非常满意,它有很多 Laravel/Symfony 的接收者,你可以在新部署完成时触发 Telegram 或 Slack 通知。(还有很多东西)


推荐阅读