Fix running meteor for dev in rebuild-wekan.sh

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-06-28 06:42:05 -04:00
parent 07dfe33ed8
commit a77cf56fbd

View file

@ -64,7 +64,8 @@ function npm_call(){
echo echo
PS3='Please enter your choice: ' PS3='Please enter your choice: '
options=("Install Wekan dependencies" "Build Wekan" "Run Meteor for development on Ethernet IP address port 4000" "Run Meteor for development on Eth interface ens3 address port 4000" "Run Meteor for development on Custom IP address and port" "Quit") options=("Install Wekan dependencies" "Build Wekan" "Run Meteor for dev on http://localhost:4000" "Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000" "Run Meteor for dev on http://CUSTOM-IP-ADDRESS:PORT" "Quit")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
@ -166,19 +167,18 @@ do
break break
;; ;;
"Run Meteor for development on Ethernet IP address port 4000") "Run Meteor for dev on http://localhost:4000")
IPADDRESS=$(ip addr show enp2s0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1) WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000
break
;;
"Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000")
IPADDRESS=$(ip a | grep 'scope global' | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000 WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000
break break
;; ;;
"Run Meteor for development on Eth interface ens3 address port 4000") "Run Meteor for dev on http://CUSTOM-IP-ADDRESS:PORT")
IPADDRESS=$(ip addr show ens3 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000
break
;;
"Run Meteor for development on Custom IP address and port")
ip address ip address
echo "From above list, what is your IP address?" echo "From above list, what is your IP address?"
read IPADDRESS read IPADDRESS