如何在Linux PHP应用服务上全球安装作曲家?

发布于 2025-02-05 06:01:08 字数 648 浏览 3 评论 0原文

我为我的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转瞬即逝 2025-02-12 06:01:08

我找到了正确的方法。

如果我回应路径它告诉我/home/site/wwwroot包含在path中,所以所需的只是移动作曲家文件wwwrootMV 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 the PATH, so all that's needed is to move the composer file into wwwroot doing something like mv composer.phar /home/site/wwwroot/composer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文