Files
crawlab/docker_init.sh
2019-08-03 11:13:28 +08:00

16 lines
272 B
Bash
Executable File

#!/bin/sh
# replace default api path to new one
if [ "${CRAWLAB_API_ADDRESS}" = "" ];
then
:
else
jspath=`ls /app/dist/js/app.*.js`
cp ${jspath} ${jspath}.bak
sed -i "s?localhost:8000?${CRAWLAB_API_ADDRESS}?g" ${jspath}
fi
# start nginx
service nginx start
crawlab