mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
16 lines
272 B
Bash
Executable File
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 |