Last active
September 22, 2017 16:54
Revisions
-
cheerfulstoic revised this gist
Sep 22, 2017 . 1 changed file with 13 additions and 18 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,16 +9,14 @@ root: ~/github/neo4jrb # Runs before everything. Use it to start daemons etc. pre: - export USE_LOCAL_CORE=true - docker ps -a --format '{{.Names}}' | grep 'neo4jrb_*' | xargs docker stop - docker ps -a --format '{{.Names}}' | grep 'neo4jrb_*' | xargs docker rm - docker network create --driver=bridge neo4jrb_neo4j_network - docker network create --driver=bridge neo4jrb_neo4j_core_network - docker run -d --env NEO4J_AUTH=none --net=neo4jrb_neo4j_network --name=neo4jrb_neo4j_test_db neo4j:latest - docker run -d --env NEO4J_AUTH=none --net=neo4jrb_neo4j_core_network --name=neo4jrb_neo4j_core_test_db neo4j:latest - docker build ./neo4j -t neo4jrb_neo4j - docker build ./neo4j-core -t neo4jrb_neo4j_core # 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 @@ -44,16 +42,13 @@ windows: root: ~/github/neo4jrb/neo4j panes: - "vim ." - "docker run --rm -it --net=neo4jrb_neo4j_network --name=neo4jrb_neo4j_guard_rspec --env NEO4J_URL=http://neo4jrb_neo4j_test_db:7474 --env NEO4J_BOLT_URL=bolt://neo4jrb_neo4j_test_db:7687 neo4jrb_neo4j bundle exec guard -P rspec" - "docker run --rm -it --name=neo4jrb_neo4j_guard_rubocop neo4jrb_neo4j bundle exec guard -P rubocop" - neo4j_core: layout: main-vertical root: ~/github/neo4jrb/neo4j-core panes: - "vim ." - "docker run --rm -it --net=neo4jrb_neo4j_core_network --name=neo4jrb_neo4j_core_guard_rspec --env NEO4J_URL=http://neo4jrb_neo4j_core_test_db:7474 --env NEO4J_BOLT_URL=bolt://neo4jrb_neo4j_core_test_db:7687 neo4jrb_neo4j_core bundle exec guard -P rspec" - "docker run --rm -it --name=neo4jrb_neo4j_core_guard_rubocop neo4jrb_neo4j_core bundle exec guard -P rubocop" -
cheerfulstoic created this gist
Sep 20, 2017 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ # ~/.tmuxinator/neo4jrb.yml name: neo4jrb root: ~/github/neo4jrb # Optional tmux socket # socket_name: foo # Runs before everything. Use it to start daemons etc. pre: - export USE_LOCAL_CORE=true - ~/github/neo4jrb/neo4j/db/bin/neo4j stop - ~/github/neo4jrb/neo4j-core/db/bin/neo4j stop - rsync -arz ~/github/neo4jrb/db ~/github/neo4jrb/neo4j/ - rsync -arz ~/github/neo4jrb/db ~/github/neo4jrb/neo4j-core/ - sed -i -e 's/NEO4J_HTTP_PORT/4200/g' ~/github/neo4jrb/neo4j/db/conf/neo4j.conf - sed -i -e 's/NEO4J_HTTPS_PORT/4201/g' ~/github/neo4jrb/neo4j/db/conf/neo4j.conf - sed -i -e 's/NEO4J_BOLT_PORT/4202/g' ~/github/neo4jrb/neo4j/db/conf/neo4j.conf - sed -i -e 's/NEO4J_HTTP_PORT/4210/g' ~/github/neo4jrb/neo4j-core/db/conf/neo4j.conf - sed -i -e 's/NEO4J_HTTPS_PORT/4211/g' ~/github/neo4jrb/neo4j-core/db/conf/neo4j.conf - sed -i -e 's/NEO4J_BOLT_PORT/4212/g' ~/github/neo4jrb/neo4j-core/db/conf/neo4j.conf # 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 neo4jrb windows: - neo4j: layout: main-vertical root: ~/github/neo4jrb/neo4j panes: - "vim ." - "USE_LOCAL_CORE=true NEO4J_URL=http://localhost:4200 NEO4J_BOLT_URL=bolt://localhost:4202 bundle exec guard -P rspec" - "USE_LOCAL_CORE=true bundle exec guard -P rubocop" - neo4j_core: layout: main-vertical root: ~/github/neo4jrb/neo4j-core panes: - "vim ." - "NEO4J_URL=http://localhost:4210 NEO4J_BOLT_URL=bolt://localhost:4212 bundle exec guard -P rspec" - "bundle exec guard -P rubocop" - neo4j_logs: panes: - "~/github/neo4jrb/neo4j/db/bin/neo4j console" - "~/github/neo4jrb/neo4j-core/db/bin/neo4j console"