Created
January 2, 2022 10:40
-
-
Save zerafachris/215bb1c3aabe262b65363e73731ca4b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# replace base url | |
if [ "${CRAWLAB_BASE_URL}" = "" ]; | |
then | |
: | |
else | |
indexpath=/app/dist/index.html | |
sed -i "s?/js/?${CRAWLAB_BASE_URL}/js/?g" ${indexpath} | |
sed -i "s?/css/?${CRAWLAB_BASE_URL}/css/?g" ${indexpath} | |
fi | |
# start nginx | |
service nginx start | |
# start seaweedfs server | |
seaweedfsDataPath=/data/seaweedfs | |
if [ -e ${seaweedfsDataPath} ]; then | |
: | |
else | |
mkdir -p ${seaweedfsDataPath} | |
fi | |
weed server \ | |
-dir /data \ | |
-master.dir ${seaweedfsDataPath} \ | |
-volume.dir.idx ${seaweedfsDataPath} \ | |
-ip localhost \ | |
-volume.port 9999 \ | |
-filer \ | |
>> /var/log/weed.log 2>&1 & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment