[英]How to install composer on live server cpanel to make local installed library work on live
I uploaded my yii1 project to live server,there was a library (which I have installed it on local machine using composer) give an error ( class not found
), what I did was: 我将yii1项目上传到实时服务器,有一个库(我已使用composer将其安装在本地计算机上)给出了错误( class not found
),我所做的是:
(The library is a client library for LinkedIn). (该库是LinkedIn的客户端库)。
Should I install composer using ssh protocol on the server? 我应该在服务器上使用ssh协议安装composer吗? Or is there another solution? 还是有其他解决方案?
I uploaded my yii1 project to live server 我将yii1项目上传到实时服务器
But not including all dependencies... 但不包括所有依赖项...
The unresolved or missing dependency just indicates that you didn't resolve the dependencies correctly before deployment or that the packaging wasn't including the dependency. 未解决或丢失的依赖项仅表示您在部署之前未正确解决依赖项,或者包装中未包含该依赖项。
Should I install composer using ssh protocol on the server? 我应该在服务器上使用ssh协议安装composer吗? Or is there another solution? 还是有其他解决方案?
You don't need Composer on the production machine at all. 您完全不需要生产机器上的Composer。
Solution: Package your application completely including all dependencies. 解决方案:完全打包您的应用程序,包括所有依赖项。
Please resolve all Composer dependencies, so that the app runs in the development/packaging stage. 请解决所有Composer依赖项,以便该应用程序在开发/打包阶段运行。 Package correctly, then deploy. 正确打包,然后部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.