You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
651 B

  1. # assuming that mongodb is running and npm installs are performed
  2. SESSION='CommonRoutes'
  3. tmux new-session -d -s $SESSION
  4. tmux split-window -d -t 0 -v
  5. tmux split-window -d -t 1 -h
  6. tmux split-window -d -t 0 -h
  7. tmux send-keys -t 0 'cd goImgServer && ./goImgServer' enter
  8. tmux send-keys -t 1 'cd commonroutesServer && npm start' enter
  9. # tmux send-keys -t 1 'cd commonroutesServer && forever start server.js' enter
  10. tmux send-keys -t 2 'cd commonroutesLandingPage && node webserver.js' enter
  11. # tmux send-keys -t 2 'cd commonroutesLandingPage && forever start webserver.js' enter
  12. tmux send-keys -t 3 'cd commonroutesBot && npm start' enter
  13. tmux attach