简体   繁体   English

在没有作曲家的情况下使用开放云API

[英]using open cloud api without composer

I am trying to use the rackspace php SDK to update to the new API since the old one has been deprecated for a while. 我正在尝试使用rackspace php SDK来更新到新的API,因为旧的API已经过时了一段时间。 I am trying to use the SDK without using composer since we cannot install composer on the production server. 我试图在不使用composer的情况下使用SDK,因为我们无法在生产服务器上安装composer。 I was wondering if anyone has any pointers to this or if anyone has successfully done so. 我想知道是否有人对此有任何指示或是否有人成功做到这一点。 At this point the only solution I have found is to manually require the files necessary to the specific files but this will take forever. 在这一点上,我发现的唯一解决方案是手动要求特定文件所必需的文件,但这将永远花费。

Any help is appreciated! 任何帮助表示赞赏!

I think you could try what Nicolas is suggesting in the comment. 我认为您可以尝试Nicolas在评论中提出的建议。 So something like this: 所以像这样:

  1. On your dev machine, install Composer and use it to require the SDK in your project like so: 在您的开发机器上,安装Composer并使用它在您的项目中要求SDK,如下所示:

     devmachine $ cd /path/to/your/project devmachine $ composer require rackspace/php-opencloud 1.9.* ... devmachine $ cd .. devmachine $ tar cvzf project.tgz project/ 
  2. Upload project.tgz from your dev machine to your production environment and untar it in the appropriate place. 从您的开发机project.tgz上载到生产环境中,并将其解压缩到适当的位置。

  3. Everything should just work in the production environment, even without Composer itself being installed in that environment. 即使没有在该环境中安装Composer本身,所有内容都应该在生产环境中工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM