2018-01-29 22:32:43 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
CONTAINER_IP=$(hostname -I | awk '{print $1}')
|
|
|
|
|
|
|
|
sed -i "s|^\(localIpAddress\):.*|\1: \"$CONTAINER_IP\"|g" config/production.yml
|
|
|
|
|
2018-08-03 04:51:38 +08:00
|
|
|
if [ ! -z "$KURENTO_NAME" ]; then
|
|
|
|
export KURENTO_IP=$(getent hosts $KURENTO_NAME | awk '{ print $1 }')
|
|
|
|
fi
|
|
|
|
|
2018-07-26 02:14:55 +08:00
|
|
|
npm start
|