mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-10 20:41:02 -05:00
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).
15 lines
490 B
Bash
Executable file
15 lines
490 B
Bash
Executable file
#!/bin/sh
|
|
|
|
export PATH="$PATH:$HOME/.composer/vendor/bin"
|
|
export PATH="$PATH:$PWD/vendor/bin"
|
|
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc
|
|
echo 'export PATH="$PATH:$PWD/vendor/bin"' >> ~/.bashrc
|
|
ln -s ./conf.sample.php cfg/conf.php
|
|
composer install --no-dev --optimize-autoloader
|
|
|
|
# for PHP unit testing
|
|
composer require --global google/cloud-storage
|
|
|
|
sudo chmod a+x "$(pwd)" && sudo rm -rf /var/www/html && sudo ln -s "$(pwd)" /var/www/html
|
|
|
|
npm install --global nyc
|