Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/.tmuxinator/tada.yml
- name: tada
- root: ~/Projects/GCI
- # Optional tmux socket
- # socket_name: foo
- # Runs before everything. Use it to start daemons etc.
- # 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
- # Project hooks
- # Runs on project start, always
- 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
- # Run on project start, the first time
- # on_project_first_start: command
- # Run on project start, after the first time
- # on_project_restart: command
- # Run on project exit ( detaching from tmux session )
- # on_project_exit: command
- # Run on project stop
- on_project_stop: docker container rm -f postgres
- # Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
- # pre_window: rbenv shell 2.0.0-p247
- # Pass command line options to tmux. Useful for specifying a different tmux.conf.
- # tmux_options: -f ~/.tmux.mac.conf
- # Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
- # tmux_command: byobu
- # Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
- # startup_window: editor
- # Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
- # startup_pane: 1
- # Controls whether the tmux session should be attached to automatically. Defaults to true.
- # attach: false
- # Runs after everything. Use it to attach to tmux with custom options etc.
- # post: tmux -CC attach -t tada
- windows:
- - bridge:
- root: ~/Projects/GCI/bridge
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g nodemon
- - npm install
- - PORT=3000 nodemon server.js
- - node -v
- - processor:
- root: ~/Projects/GCI/processor
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g nodemon
- - npm install
- - PORT=4000 nodemon server.js
- - node -v
- - loyalty:
- root: ~/Projects/GCI/loyalty
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g nodemon
- - npm install
- - PORT=5000 nodemon app.js
- - node -v
- - egift:
- root: ~/Projects/GCI/egift
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g nodemon
- - npm install
- - PORT=6000 nodemon app.js
- - node -v
- - gcfsv1:
- root: ~/Projects/GCI/gcfs
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - gem install bundler
- - bundle install
- - ./bin/rails s -p 7000
- - node -v
- - gcfsv2:
- root: ~/Projects/GCI/GCFS-V2
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g nodemon
- - npm install
- - PORT=8000 nodemon app.js
- - node -v
- - avbo:
- root: ~/Projects/GCI/ui-distribution
- layout: main-vertical
- # Synchronize all panes of this window, can be enabled before or after the pane commands run.
- # 'before' represents legacy functionality and will be deprecated in a future release, in favour of 'after'
- # synchronize: after
- panes:
- - vim .
- - server:
- - git checkout develop
- - npm install -g serve
- - npm install
- - serve -p 9000 app
- - node -v
Add Comment
Please, Sign In to add comment