mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
When developing with Meteor on macOS, get current IP address.
Thanks to xet7 !
This commit is contained in:
parent
963a4711db
commit
a73a4c1e5b
1 changed files with 5 additions and 1 deletions
|
@ -115,7 +115,11 @@ do
|
|||
;;
|
||||
|
||||
"Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000")
|
||||
IPADDRESS=$(ip a | grep 'noprefixroute' | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
IPADDRESS=$(ifconfig | grep broadcast | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
|
||||
else
|
||||
IPADDRESS=$(ip a | grep 'noprefixroute' | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
|
||||
fi
|
||||
echo "Your IP address is $IPADDRESS"
|
||||
WRITABLE_PATH=.. NODE_OPTIONS="--max_old_space_size=4096 --trace-warnings" 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue