Merge pull request #268 from haivp3010/fix-env-var-replacement

Fix environment variable replacement for CRAWLAB_API_ADDRESS
This commit is contained in:
Marvin Zhang
2019-10-21 09:52:48 +08:00
committed by GitHub

View File

@@ -6,7 +6,7 @@ then
:
else
jspath=`ls /app/dist/js/app.*.js`
sed -i "s?localhost:8000?${CRAWLAB_API_ADDRESS}?g" ${jspath}
sed -i "s?http://localhost:8000?${CRAWLAB_API_ADDRESS}?g" ${jspath}
fi
# replace base url