소스 검색

Add PHP composer global installation for DevContainer

Updated composer commands to require google/cloud-storage globally and optimized autoloader during update.

This helps with https://github.com/PrivateBin/PrivateBin/issues/1641 (but technically not solve it).
rugk 8 달 전
부모
커밋
f9630e7e6c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      .devcontainer/postCreateCommand.sh

+ 1 - 2
.devcontainer/postCreateCommand.sh

@@ -8,8 +8,7 @@ ln -s ./conf.sample.php cfg/conf.php
 composer install --no-dev --optimize-autoloader
 
 # for PHP unit testing
-# composer require google/cloud-storage
-# composer install --optimize-autoloader
+composer require --global google/cloud-storage
 
 sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html