使用无ssh访问服务器的Composer [英] Use Composer without ssh access to server

查看:245
本文介绍了使用无ssh访问服务器的Composer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不能使用ssh(只有ftp?)访问的廉价网络空间上运行作曲家

Is it possible to run composer on a cheap webspace that can't be accessed using ssh, only ftp?

运行 system('php composer.phar install'); 应该在理论上工作 - 是推荐的方法吗?

Running system('php composer.phar install'); should work in theory - is that the recommended method?

推荐答案

我认为最好的方法,如在之前的注释中建议的,是在能够做到的本地系统上执行composer步骤,然后通过FTP上传结果。

I think the best way, as suggested in the comments before, is to execute the composer step on a local system that is able to do it, and then upload the result via FTP.

Composer有一些(可能是可选的)软件依赖项,很可能不会在您的网络空间。例如,它需要Git和SVN客户端软件,如果你要安装的项目引用这样的依赖。

Composer has some (probably optional) software dependencies that most likely will not be available on your webspace. For example it needs the Git and SVN client software in case the project you are about to install references such dependencies.

另一件事是从Github(或其他地方)可能会失败。或触发API限制并要求登录。

Another thing is that downloading from Github (or anywhere else) can fail. Or trigger the API limit and ask for a login.

你真的想收集所有的软件,知道它的工作,而不是希望它会远程执行。

You'd really want to collect all the software and know that it worked instead of hoping it will execute well remotely.

这篇关于使用无ssh访问服务器的Composer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆