Welcome Guest, Not a member yet? Register   Sign In
composer require get error in centos 7
#2

(This post was last modified: 10-29-2020, 09:34 AM by captain-sensible.)

so just to clarify your running composer on live server ?


For development on my Linux PC , i'm using apache . I set up my normal user to join apache group and have appropriate chmod level, to run at composer from context of .

Suppose i want phpoffice/phpspreadsheetbeing inside web root


I cd to directory of web app on local host. and run
$ composer require phpoffice/phpspreadsheet
//for some it will be php composer.phar etc


That puts required packages into Vendor along with other stuff (your using appstarter i hope)

When i want to make changes to live (after backing up via cpanel of course :^) )

I just cd INSIDE vendor directory, zip with command line maybe:
Code:
$  zip -r    updatedVendor.zip   .
//notice trailing "."
// at least thats for Linux , no clue for Windows -too long ago it used it

So i don't run composer live because its not necessary just zip in the right way local and via cPanel browse to inside vendor directory on cpanel , and upload with (overright ticked) updatedVendor.zip and then extract it.
Reply


Messages In This Thread
RE: composer require get error in centos 7 - by captain-sensible - 10-29-2020, 09:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB