简体   繁体   中英

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. I am trying to use the SDK without using composer since we cannot install composer on the production server. 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. So something like this:

  1. On your dev machine, install Composer and use it to require the SDK in your project like so:

     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.

  3. Everything should just work in the production environment, even without Composer itself being installed in that environment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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