Skip to content

Commit

Permalink
build: try to remove frontend and leave only bbb-html5
Browse files Browse the repository at this point in the history
  • Loading branch information
antobinary committed May 7, 2024
1 parent de483ce commit be7fad8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 39 deletions.
2 changes: 0 additions & 2 deletions bigbluebutton-config/bin/bbb-conf
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,6 @@ display_bigbluebutton_status () {

if [ -f /usr/lib/systemd/system/bbb-html5.service ]; then
units="$units mongod bbb-html5"

units="$units bbb-html5-frontend"
fi

if [ -f /usr/lib/systemd/system/bbb-graphql-actions.service ]; then
Expand Down
41 changes: 6 additions & 35 deletions bigbluebutton-html5/deploy_to_usr_share.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi

sudo rm -rf "$UPPER_DESTINATION_DIR"
sudo mkdir -p "$UPPER_DESTINATION_DIR"
sudo chown -R meteor:meteor "$UPPER_DESTINATION_DIR"
sudo chown -R root:root "$UPPER_DESTINATION_DIR"

# the next 5 lines may be temporarily commented out if you are sure you are not tweaking the required node_modules after first use of the script. This will save a minute or two during the run of the script
if [ -d "node_modules" ]; then
Expand All @@ -28,10 +28,9 @@ meteor npm ci --production
sudo chmod 777 /usr/share/meteor
METEOR_DISABLE_OPTIMISTIC_CACHING=1 meteor build $UPPER_DESTINATION_DIR --architecture os.linux.x86_64 --allow-superuser --directory

sudo chown -R meteor:meteor "$UPPER_DESTINATION_DIR"/
sudo chown -R root:root "$UPPER_DESTINATION_DIR"/
echo 'stage3'


cd "$DESTINATION_DIR"/programs/server/ || exit
sudo chmod -R 777 .
meteor npm i
Expand All @@ -44,43 +43,15 @@ sudo cp $LOCAL_PACKAGING_DIR/mongod_start_pre.sh "$DESTINATION_DIR"/mongod_start
echo "writing $DESTINATION_DIR/mongo-ramdisk.conf"
sudo cp $LOCAL_PACKAGING_DIR/mongo-ramdisk.conf "$DESTINATION_DIR"/mongo-ramdisk.conf

echo "writing $DESTINATION_DIR/systemd_start_frontend.sh"
sudo cp $LOCAL_PACKAGING_DIR/systemd_start_frontend.sh "$DESTINATION_DIR"/systemd_start_frontend.sh

sudo chown -R meteor:meteor "$UPPER_DESTINATION_DIR"/
sudo chown -R root:root "$UPPER_DESTINATION_DIR"/
sudo chmod +x "$DESTINATION_DIR"/mongod_start_pre.sh
sudo chmod +x "$DESTINATION_DIR"/systemd_start_frontend.sh

sudo cp $LOCAL_PACKAGING_DIR/workers-start.sh "$DESTINATION_DIR"/workers-start.sh
sudo chmod +x "$DESTINATION_DIR"/workers-start.sh



echo "writing $SERVICE_FILES_DIR/bbb-html5-frontend.service"
sudo cp $LOCAL_PACKAGING_DIR/bbb-html5-frontend.service "$SERVICE_FILES_DIR"/bbb-html5-frontend.service
echo "writing $SERVICE_FILES_DIR/bbb-html5.service"
sudo cp $LOCAL_PACKAGING_DIR/bbb-html5.service "$SERVICE_FILES_DIR"/bbb-html5.service

sudo systemctl daemon-reload

echo 'before stopping bbb-html5:'
ps -ef | grep node-
sudo ss -netlp | grep -i node
echo 'before stopping bbb-html5:'
echo '_____________'

sudo systemctl stop bbb-html5

sleep 5s
echo 'after stopping bbb-html5:'
ps -ef | grep node-
sudo ss -netlp | grep -i node
echo 'after stopping bbb-html5:'
echo '_____________'

echo 'starting bbb-html5'
sudo systemctl start bbb-html5
sleep 10s
echo 'after:...'
ps -ef | grep node-
sudo ss -netlp | grep -i node
echo 'after:'
echo '_____________'
sudo systemctl restart bbb-html5
2 changes: 1 addition & 1 deletion bigbluebutton-html5/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/packages-template/bbb-html5/bbb-html5.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=redis-server.service mongod.service disable-transparent-huge-pages.service
PartOf=bigbluebutton.target

[Service]
Type=oneshot
Type=idle
ExecStart=/usr/share/meteor/bundle/workers-start.sh
# WorkingDirectory=/usr/share/meteor
WorkingDirectory=/usr/share/meteor/bundle
Expand Down

0 comments on commit be7fad8

Please sign in to comment.