Typography

活版印字


  • Home
  • Archive
  • Categories
  • Tags
  •  

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo

Buddy CI 與 PM2 的整合(踩雷)

Posted at 2016-04-14 Buddy CI  Buddy CI 

問題

  • undefined symbol: node_module_register
  • bcrypt bindings problem

解法

ln -s /root/.nvm/versions/node/v4.4.1/bin/node /usr/bin/node

實作 SSH 命令注意事項

  • 每個指令 (command) 的工作目錄是預設的 user 的目錄,指令從上而下執行。
  • 每行指令需獨立一行
  • 指令執行失敗,將會停止執行後面的指令。(除非你有設忽略 error)
  • 如果使用抽象路徑(cd /xxx/yyy),命令將不會帶到下一行指令。
  • 如果你需要執行複雜的 script,建議將 script 檔放在 server side,再去呼叫它執行。

How to use SSH scripts?

參考資料

  • undefined symbol: node_module_register

Share 

 Previous post: Chain Of Responsibility Design Pattern (javascript) Next post: lodash - 必要值檢查 

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo