chore(bbb-web): do away with wrapper script, use default files
This commit is contained in:
parent
ec9bad1287
commit
02891cf320
@ -62,8 +62,7 @@ To package the application for production:
|
|||||||
3. Create a new directory `mkdir exploded`
|
3. Create a new directory `mkdir exploded`
|
||||||
4. Navigate to that directory `cd exploded`
|
4. Navigate to that directory `cd exploded`
|
||||||
5. Extract the war content `jar -xvf ../build/libs/bigbluebutton-0.10.0.war`
|
5. Extract the war content `jar -xvf ../build/libs/bigbluebutton-0.10.0.war`
|
||||||
6. Copy run script into exploded dir `cp ../run-prod.sh .`
|
6. Package the content of the new directory in a debian package then add service configuration. Install into `/usr/share/bbb-web`.
|
||||||
7. Package the content of the new directory in a debian package then add service configuration. Install into `/usr/share/bbb-web`.
|
7. Use the systemd service file provided in build/package-template/bbb-web. App will be listening on port 8080
|
||||||
8. Create a systemd service file that runs `run-prod.sh`. App will be listening on port 8080
|
8. To do custom config, edit `/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties`
|
||||||
9. To do custom config, edit `/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties`
|
|
||||||
Don't forget to use full directories path and replace the dot before the org with the full path to the exploded war.
|
Don't forget to use full directories path and replace the dot before the org with the full path to the exploded war.
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
exec java -Dgrails.env=prod -Dserver.address=127.0.0.1 -Dserver.port=8090 -Dspring.main.allow-circular-references=true -Xms384m -Xmx384m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/bigbluebutton/diagnostics -cp WEB-INF/lib/*:/:WEB-INF/classes/:. org.springframework.boot.loader.WarLauncher
|
|
6
build/packages-template/bbb-web/bbb-web.env
Normal file
6
build/packages-template/bbb-web/bbb-web.env
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ENV=prod
|
||||||
|
LISTEN_ADDRESS=127.0.0.1
|
||||||
|
LISTEN_PORT=8090
|
||||||
|
INITIAL_HEAP_SIZE=384m
|
||||||
|
MAX_HEAP_SIZE=384m
|
||||||
|
HEAP_DUMP_PATH=/var/bigbluebutton/diagnostics
|
@ -10,9 +10,9 @@ Type=simple
|
|||||||
User=bigbluebutton
|
User=bigbluebutton
|
||||||
Group=bigbluebutton
|
Group=bigbluebutton
|
||||||
WorkingDirectory=/usr/share/bbb-web
|
WorkingDirectory=/usr/share/bbb-web
|
||||||
#EnvironmentFile=/etc/default/bbb-web
|
EnvironmentFile=/etc/default/bbb-web
|
||||||
#ExecStartPre=/bin/chown -R bigbluebutton:bigbluebutton /usr/share/bbb-web
|
#ExecStartPre=/bin/chown -R bigbluebutton:bigbluebutton /usr/share/bbb-web
|
||||||
ExecStart=/usr/share/bbb-web/run-prod.sh
|
ExecStart=java -Dgrails.env=${ENV} -Dserver.address=${LISTEN_ADDRESS} -Dserver.port=${LISTEN_PORT} -Dspring.main.allow-circular-references=true -Xms${INITIAL_HEAP_SIZE} -Xmx${MAX_HEAP_SIZE} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${HEAP_DUMP_PATH} -cp WEB-INF/lib/*:/:WEB-INF/classes/:. org.springframework.boot.loader.WarLauncher
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60
|
RestartSec=60
|
||||||
|
@ -79,7 +79,9 @@ echo $PWD
|
|||||||
|
|
||||||
mkdir -p "$STAGING"/usr/share/bbb-web
|
mkdir -p "$STAGING"/usr/share/bbb-web
|
||||||
mv build/libs/bigbluebutton-0.10.0.war "$STAGING"/usr/share/bbb-web
|
mv build/libs/bigbluebutton-0.10.0.war "$STAGING"/usr/share/bbb-web
|
||||||
cp run-prod.sh "$STAGING"/usr/share/bbb-web
|
|
||||||
|
mkdir -p "$STAGING"/etc/default
|
||||||
|
cp ../bbb-web.env "$STAGING"/etc/default/bbb-web
|
||||||
|
|
||||||
mkdir -p "$STAGING"/lib/systemd/system
|
mkdir -p "$STAGING"/lib/systemd/system
|
||||||
cp ../bbb-web.service "$STAGING"/lib/systemd/system
|
cp ../bbb-web.service "$STAGING"/lib/systemd/system
|
||||||
|
Loading…
Reference in New Issue
Block a user