Prechádzať zdrojové kódy

Added to meteor development options for logging also to ../wekan-log.txt, and showing deprecated API that is Meteor v2.12 new feature.

Thanks to Meteor developers and xet7 !
Lauri Ojansivu 2 rokov pred
rodič
commit
9fc5283856
1 zmenil súbory, kde vykonal 30 pridanie a 8 odobranie
  1. 30 8
      rebuild-wekan.sh

+ 30 - 8
rebuild-wekan.sh

@@ -114,14 +114,24 @@ do
 		;;
 
     "Run Meteor for dev on http://localhost:4000")
-		#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
-		WRITABLE_PATH=.. NODE_OPTIONS="--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
+		#Not in use, could increase RAM usage: NODE_OPTIONS="--max_old_space_size=4096"
+		#---------------------------------------------------------------------
+		# Logging of terminal output to console and to ../wekan-log.txt at end of this line: 2>&1 | tee ../wekan-log.txt
+		WARN_WHEN_USING_OLD_API=true WRITABLE_PATH=.. NODE_OPTIONS="--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 2>&1 | tee ../wekan-log.txt
+		#---------------------------------------------------------------------
 		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
-		WRITABLE_PATH=.. NODE_OPTIONS="--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
+		#Not in use, could increase RAM usage: NODE_OPTIONS="--max_old_space_size=4096"
+		#---------------------------------------------------------------------
+		#Logging of terminal output to console and to ../wekan-log.txt at end of this line: 2>&1 | tee ../wekan-log.txt
+		WARN_WHEN_USING_OLD_API=true WRITABLE_PATH=.. NODE_OPTIONS="--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  2>&1 | tee ../wekan-log.txt
+		#---------------------------------------------------------------------
 		break
 		;;
 
@@ -132,8 +142,14 @@ do
 		  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
-		WRITABLE_PATH=.. NODE_OPTIONS="--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
+		#---------------------------------------------------------------------
+		#Not in use, could increase RAM usage: NODE_OPTIONS="--max_old_space_size=4096"
+		#---------------------------------------------------------------------
+		#Logging of terminal output to console and to ../wekan-log.txt at end of this line: 2>&1 | tee ../wekan-log.txt
+		WARN_WHEN_USING_OLD_API=true WRITABLE_PATH=.. NODE_OPTIONS="--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 2>&1 | tee ../wekan-log.txt
+		#---------------------------------------------------------------------
 		break
 		;;
 
@@ -144,8 +160,14 @@ do
 		echo "On what port you would like to run Wekan?"
 		read PORT
 		echo "ROOT_URL=http://$IPADDRESS:$PORT"
-		#WRITABLE_PATH=.. NODE_OPTIONS="--max_old_space_size=4096 --trace-warnings" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --exclude-archs web.browser.legacy,web.cordova --port $PORT
-		WRITABLE_PATH=.. NODE_OPTIONS="--trace-warnings" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run --exclude-archs web.browser.legacy,web.cordova --port $PORT
+		#---------------------------------------------------------------------
+		#Not in use, could increase RAM usage: NODE_OPTIONS="--max_old_space_size=4096"
+		#---------------------------------------------------------------------
+		#Logging of terminal output to console and to ../wekan-log.txt at end of this line: 2>&1 | tee ../wekan-log.txt
+		WARN_WHEN_USING_OLD_API=true WRITABLE_PATH=.. NODE_OPTIONS="--trace-warnings" WITH_API=true \\
+		RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://$IPADDRESS:$PORT meteor run \\
+		--exclude-archs web.browser.legacy,web.cordova --port $PORT 2>&1 | tee ../wekan-log.txt
+		#---------------------------------------------------------------------
 		break
 		;;