start.sh 670 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. export PATH="/usr/local/bin:$PATH"
  3. cd ~
  4. rm -rf bc
  5. git clone git@github.com:finalsclubdev/bc
  6. cd ~/bc
  7. npm install connect
  8. npm install socket.io
  9. npm install express-messages
  10. npm install jade
  11. cd ~
  12. rm -rf FinalsClub
  13. git clone git@github.com:finalsclubdev/FinalsClub.git
  14. ln -sf FinalsClub fc
  15. cd ~/fc
  16. git checkout master
  17. git submodule init && git submodule update
  18. npm install
  19. cd etherpad-lite
  20. npm install
  21. # install some dependencies
  22. cd ~/fc
  23. npm install connect
  24. npm install socket.io
  25. npm install express-messages
  26. npm install jade
  27. ## init fcbackup
  28. cd ~/fc/fcbackups
  29. chmod 775 fcbackup_init.sh
  30. ./fcbackup_init.sh
  31. ## start the server
  32. cd ~/fc
  33. ./restart