Browse Source

Gitbook Auto Published

willin 8 years ago
parent
commit
589d369cfa
2 changed files with 15 additions and 10 deletions
  1. 9 4
      basic/solving.md
  2. 6 6
      cmd

+ 9 - 4
basic/solving.md

@@ -46,7 +46,7 @@ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.
   address: '127.0.0.1',
   port: 6379
 ```
-  
+
 只知道错误信息,不知道具体出错位置的,也可以根据错误信息很快定位到问题。
 
 其他一些问题,如语法问题、死循环、逻辑错误,在调试过程中很难排查,则需要耐下心来单步跳入检查。
@@ -69,12 +69,17 @@ Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.
 
 ### 2.举一反三
 
-再进一步,在思考总结的基础之上,学会举一反三,能够有效规避相似的错误。
+再进一步,在思考总结的基础之上,学会举一反三,能够有效规避相似的问题。
+
+会的多了自然错的就少了,技多不压身。
 
 ### 3.科学严谨
 
 严谨是不犯错的前提。
 
+如:
 
-
-
+* 做事有条理、有规划(可以用一些GTD工具,如TODO List、奇妙清单、Omni Plan等)
+* 养成良好的编码注释习惯
+* 测试驱动开发(编写自动化测试用例)
+* 培养大局观和洞察力

+ 6 - 6
cmd

@@ -4,12 +4,6 @@ git add .
 git commit -m 'Gitbook Auto Published'
 git push origin master
 
-cd _private
-git add .
-git commit -m 'Gitbook Auto Published'
-git push origin master
-
-cd ..
 rm -rf _book
 node_modules/.bin/gitbook build
 cd _book
@@ -18,3 +12,9 @@ git add .
 git commit -m "Gitbook Auto Deployed"
 git remote add origin git@git.coding.net:willin/leader.js.cool.git
 git push -f origin master:coding-pages
+
+cd ..
+cd _private
+git add .
+git commit -m 'Gitbook Auto Published'
+git push origin master