# ~/.tmuxinator/engine.yml name: engine root: ~/ # Optional tmux socket # socket_name: foo # Runs before everything. Use it to start daemons etc. # pre: sudo /etc/rc.d/mysqld start on_project_first_start: echo "update chatCN.units set status = 'error' where status = 'training'"|mysql -uroot -p38A0O1jEPOE && echo "update chatCN.units set status = 'error' where status = 'training'" # 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: logs # 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 engine windows: # - engine: # - source env/bin/activate # - cd barchybrid/engine # - ./0.engine.sh 2>&1 | tee 0.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/engine # - ./1.engine.sh 2>&1 | tee 1.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/engine # - ./2.engine.sh 2>&1 | tee 2.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/engine # - ./3.engine.sh 2>&1 | tee 3.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/engine # - ./4.engine.sh 2>&1 | tee 4.engine.log - engine: - source env/bin/activate - cd barchybrid/src - ./engine_redis.sh 2>&1 | tee 0.engine.log - engine: - source env/bin/activate - cd barchybrid/src - ./engine_redis.sh 2>&1 | tee 1.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/src # - ./engine_redis.sh 2>&1 | tee 2.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/src # - ./engine_redis.sh 2>&1 | tee 3.engine.log # - engine: # - source env/bin/activate # - cd barchybrid/src # - ./engine_redis.sh 2>&1 | tee 4.engine.log # - train: # - source env/bin/activate # - cd programsCN # - ./train.sh 2>&1 | tee train.log - chatbot: - source env/bin/activate - cd programsCN - rm chatbot.log.bak - mv chatbot.log chatbot.log.bak && ./chatbot.sh 2>&1 | tee chatbot.log # - knowledge: # - source env/bin/activate # - cd programsCN # - ./knowledge.sh 2>&1 | tee knowledge_1.log # - knowledge: # - source env/bin/activate # - cd programsCN # - ./knowledge.sh 2>&1 | tee knowledge_2.log - basetrain: - source env/bin/activate - cd programsCN - ./basetrain.sh 2>&1 | tee basetrain.log