Skip to content

Commit

Permalink
Added development option for using bundle visualizer.
Browse files Browse the repository at this point in the history
Thanks to xet7 !
  • Loading branch information
xet7 committed Oct 20, 2022
1 parent aa9a388 commit 7810e90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rebuild-wekan.sh
Expand Up @@ -14,7 +14,7 @@ function pause(){

echo
PS3='Please enter your choice: '
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")
options=("Install Wekan dependencies" "Build Wekan" "Run Meteor for dev on http://localhost:4000" "Run Meteor for dev on http://localhost:4000 with bundle visualizer" "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[@]}"
do
Expand Down Expand Up @@ -118,6 +118,11 @@ do
break
;;

"Run Meteor for dev on http://localhost:4000 with bundle visualizer")
WRITABLE_PATH=.. NODE_OPTIONS="--max_old_space_size=4096 --trace-warnings" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000 --extra-packages bundle-visualizer --production
break
;;

"Run Meteor for dev on http://CURRENT-IP-ADDRESS:4000")
if [[ "$OSTYPE" == "darwin"* ]]; then
IPADDRESS=$(ifconfig | grep broadcast | grep 'inet ' | cut -d: -f2 | awk '{ print $2}' | cut -d '/' -f 1)
Expand Down

0 comments on commit 7810e90

Please sign in to comment.