gestion websocket server

This commit is contained in:
2019-09-19 13:46:25 +02:00
parent 4b0d392e58
commit 1f3f2246fd
9 changed files with 183 additions and 27 deletions

View File

@ -22,6 +22,7 @@ composer install
./perm.sh www-data
# Nettoyage du cache
rm /var/www/html/ninegate/var/cache/* -rf
php bin/console cache:clear --env=prod --no-debug
# Migration si nécessaire du schéma de la base
@ -55,13 +56,5 @@ fi
# Server Websocket
if [[ "$ninegate_websocket" = 'oui' ]]
then
echo ""
echo WEBSOCKET = STOP
pid="$(pgrep -f gos:websocket)"
if [ -n "${pid}" ]; then
kill -9 ${pid};
fi
echo WEBSOCKET = START
bin/console gos:websocket:server --port $websocket_portinterne -a $websocket_url --no-debug -n -q --env=prod & disown
/var/www/html/ninegate/scripts/ninegate-websocket.sh
fi