bigbluebutton-Github/bigbluebutton-html5/deploy.sh
Gustavo Trott 47997a932a
Add scripts to run html5 from source (#20899)
* Add scripts to run html5 from source

* remove unnecessary sudo
2024-08-12 09:35:45 -03:00

28 lines
513 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
for var in "$@"
do
if [[ $var == --reset ]] ; then
echo "Performing a full reset..."
rm -rf node_modules
fi
done
if [ ! -d ./node_modules ] ; then
npm ci --no-progress
fi
npm run build
sudo cp -rf dist/* /var/bigbluebutton/html5-client/
sudo ln -sf /usr/share/bigbluebutton/nginx/bbb-html5.nginx.static /usr/share/bigbluebutton/nginx/bbb-html5.nginx
sudo systemctl restart nginx
echo ''
echo ''
echo '----------------'
echo 'bbb-html5 updated'