Fixed rebuild-wekan.sh .

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2021-07-12 18:16:12 +03:00
parent 35a7036d4a
commit 1d5dd5e60f

View file

@ -78,23 +78,23 @@ do
#fi
#cd ..
#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
cd ~/repos/wekan
rm -rf node_modules .meteor/local .build
chmod u+w *.json
npm install
meteor build .build --directory
rm -rf .build/bundle/programs/web.browser.legacy
cd .build/bundle/programs/server
rm -rf ~/repos/wekan/.build/bundle/programs/web.browser.legacy
cd ~/repos/wekan/.build/bundle/programs/server
rm -rf node_modules
chmod u+w *.json
npm install
cd ../../../..
# Cleanup
cd .build/bundle
cd ~/repos/wekan/.build/bundle
find . -type d -name '*-garbage*' | xargs rm -rf
find . -name '*phantom*' | xargs rm -rf
find . -name '.*.swp' | xargs rm -f
find . -name '*.swp' | xargs rm -f
cd ../..
cd ~/repos/wekan
# Add fibers multi arch
#cd .build/bundle/programs/server/node_modules/fibers/bin
#curl https://releases.wekan.team/fibers-multi.7z -o fibers-multi.7z
@ -124,13 +124,13 @@ do
echo "On what port you would like to run Wekan?"
read PORT
echo "ROOT_URL=http://$IPADDRESS:$PORT"
WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --exclude-archs web.browser.legacy,web.cordova --port $PORT
WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --exclude-archs web.browser.legacy,web.cordova --port $PORT
break
;;
;;
"Quit")
break
;;
;;
*) echo invalid option;;
esac
done