Guest User

Untitled

a guest
Dec 22nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. # ~/.tmuxinator/tada.yml
  2.  
  3. name: tada
  4. root: ~/Projects/GCI
  5.  
  6. # Optional tmux socket
  7. # socket_name: foo
  8.  
  9. # Runs before everything. Use it to start daemons etc.
  10. # pre: docker run -p 5432:5432 -e POSTGRES_PASSWORD=avd -e POSTGRES_USER=avd -e POSTGRES_DB=distribution-development -d -v ~/Documents/data/postgres:/var/lib/postgresql/data postgres
  11.  
  12. # Project hooks
  13. # Runs on project start, always
  14. on_project_start: docker run -p 5432:5432 -e POSTGRES_PASSWORD=avd -e POSTGRES_USER=avd -e POSTGRES_DB=distribution-development -d -v ~/Documents/data/postgres:/var/lib/postgresql/data --name postgres postgres
  15. # Run on project start, the first time
  16. # on_project_first_start: command
  17. # Run on project start, after the first time
  18. # on_project_restart: command
  19. # Run on project exit ( detaching from tmux session )
  20. # on_project_exit: command
  21. # Run on project stop
  22. on_project_stop: docker container rm -f postgres
  23.  
  24. # Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
  25. # pre_window: rbenv shell 2.0.0-p247
  26.  
  27. # Pass command line options to tmux. Useful for specifying a different tmux.conf.
  28. # tmux_options: -f ~/.tmux.mac.conf
  29.  
  30. # Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
  31. # tmux_command: byobu
  32.  
  33. # Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
  34. # startup_window: editor
  35.  
  36. # Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
  37. # startup_pane: 1
  38.  
  39. # Controls whether the tmux session should be attached to automatically. Defaults to true.
  40. # attach: false
  41.  
  42. # Runs after everything. Use it to attach to tmux with custom options etc.
  43. # post: tmux -CC attach -t tada
  44.  
  45. windows:
  46. - bridge:
  47. root: ~/Projects/GCI/bridge
  48. layout: main-vertical
  49. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  50. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  51. # synchronize: after
  52. panes:
  53. - vim .
  54. - server:
  55. - git checkout develop
  56. - npm install -g nodemon
  57. - npm install
  58. - PORT=3000 nodemon server.js
  59. - node -v
  60. - processor:
  61. root: ~/Projects/GCI/processor
  62. layout: main-vertical
  63. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  64. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  65. # synchronize: after
  66. panes:
  67. - vim .
  68. - server:
  69. - git checkout develop
  70. - npm install -g nodemon
  71. - npm install
  72. - PORT=4000 nodemon server.js
  73. - node -v
  74. - loyalty:
  75. root: ~/Projects/GCI/loyalty
  76. layout: main-vertical
  77. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  78. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  79. # synchronize: after
  80. panes:
  81. - vim .
  82. - server:
  83. - git checkout develop
  84. - npm install -g nodemon
  85. - npm install
  86. - PORT=5000 nodemon app.js
  87. - node -v
  88. - egift:
  89. root: ~/Projects/GCI/egift
  90. layout: main-vertical
  91. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  92. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  93. # synchronize: after
  94. panes:
  95. - vim .
  96. - server:
  97. - git checkout develop
  98. - npm install -g nodemon
  99. - npm install
  100. - PORT=6000 nodemon app.js
  101. - node -v
  102. - gcfsv1:
  103. root: ~/Projects/GCI/gcfs
  104. layout: main-vertical
  105. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  106. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  107. # synchronize: after
  108. panes:
  109. - vim .
  110. - server:
  111. - git checkout develop
  112. - gem install bundler
  113. - bundle install
  114. - ./bin/rails s -p 7000
  115. - node -v
  116. - gcfsv2:
  117. root: ~/Projects/GCI/GCFS-V2
  118. layout: main-vertical
  119. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  120. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  121. # synchronize: after
  122. panes:
  123. - vim .
  124. - server:
  125. - git checkout develop
  126. - npm install -g nodemon
  127. - npm install
  128. - PORT=8000 nodemon app.js
  129. - node -v
  130. - avbo:
  131. root: ~/Projects/GCI/ui-distribution
  132. layout: main-vertical
  133. # Synchronize all panes of this window, can be enabled before or after the pane commands run.
  134. # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
  135. # synchronize: after
  136. panes:
  137. - vim .
  138. - server:
  139. - git checkout develop
  140. - npm install -g serve
  141. - npm install
  142. - serve -p 9000 app
  143. - node -v
Add Comment
Please, Sign In to add comment