如何在Linux PHP应用服务上全球安装作曲家?
我为我的PHP 8.0应用程序提供了应用服务。 Azure只能让我使用可以很好的Linux,但是我在全球安装作曲家时遇到了麻烦。
因为只有/home内部的文件持续存在,所以我不确定可以将结果composer.phar
文件放在哪里,以使其包含在path
中,而且我找不到任何相关文档,我只能找到相关的讨论是: https://learn.microsoft.com/en-us/aswers/questions/questions/3638/installing-composer-composer-composer-on-on-azposure-an-app-service.html < /a>,但仍然没有帮助。
谁能告诉我在哪里放composer.phar
,或者是否有一种方法可以编辑我指向/home/composer.phar
的方法?
谢谢!
I have an app service for my PHP 8.0 application. Azure will only allow me to use Linux which is fine, but I'm having trouble installing composer globally.
Because only files inside of /home are persisted I'm not sure where I can place the resulting composer.phar
file, in such a way that it is included in the PATH
, and I can't find any relevant documentation, only relevant discussion I could find was this: https://learn.microsoft.com/en-us/answers/questions/3638/installing-composer-on-azure-app-service.html but it still didn't help.
Could anyone tell me either where to put composer.phar
or whether there's a way to edit my path to point towards /home/composer.phar
?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了正确的方法。
如果我回应
路径
它告诉我/home/site/wwwroot
包含在path
中,所以所需的只是移动作曲家文件wwwroot
做MV Composer.phar/home/site/site/wwwroot/composer
之类的事情。I found the right way.
If I echo'ed
PATH
it told me that/home/site/wwwroot
was included in thePATH
, so all that's needed is to move the composer file intowwwroot
doing something likemv composer.phar /home/site/wwwroot/composer
.