Yii Framework Forum: How to update yii2 extension from local to shared hosting server - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to update yii2 extension from local to shared hosting server composer update extension from local to server Rate Topic: -----

#1 User is offline   mostofa62 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 11-April 13
  • Location:Chittagong, Bangladesh

Posted 12 November 2016 - 12:22 AM

When we develop our project on localhost.
we download many extension using composer.
but sometimes, we deploy our project on shared host and develop both local and server.
in that case, how could we fit our composer updated extension in server.
we can do that using following:



[BEFORE EVERY STEP YOU CAN TAKE A BACKUP OF FILES AND FOLDER THAT ARE MENTIONED BELOW]

1. Zip and Upload local host [vendor/composer] folder to server projects [vendor/composer]. Then after upload extract the composer zip folder.

2. Upload and override local [vendor/autoload.php] to server projects [vendor/autoload.php]

3. Upload and override local [vendor/yiisoft/extensions.php] to server projects [vendor/yiisoft/extensions.php]

4. Now zip and upload the extension folder from local [ex: vendor/kartik-v] to server projects [vendor] and extract it there.

5. Upload and override composer.json from localhost project root to server project root [ optional, but it may require in future ]

1

#2 User is offline   Taras V. Shkodenko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 17-March 16

Posted 27 March 2017 - 11:01 AM

I suggest to make backups of composer.json, composer.lock and vendor, and then re-upload it from local to shared hosting.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users