Files
crawlab/docker_init.sh
2019-07-28 15:27:44 +08:00

10 lines
202 B
Bash
Executable File

#!/bin/sh
# replace default api path to new one
jspath=`ls /app/dist/js/app.*.js`
cat ${jspath} | sed "s/localhost:8000/${CRAWLAB_API_ADDRESS}/g" > ${jspath}
# start nginx
service nginx start
crawlab