Created
October 30, 2019 10:43
-
-
Save refs/8fd097c65ef179699e5a42d3b1cfa998 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 characters
#!/bin/sh | |
# This hardcoded stuff is too volatile. | |
# - load all configs on a folder | |
# - read the folder *.toml files | |
# - launch revad with -c on the current toml | |
# - set -p (pid) to the name of the file (minus extension) with the .pid extension | |
# run storage-home by default within the main pane of the new session | |
tmux new-session -s "reva" -d -c /Users/aunger/code/reva revad -c ./examples/separate/storage-home.toml -p storage-home.pid | |
# start storage.toml | |
tmux split-window -v -c /Users/aunger/code/reva revad -c ./examples/separate/storage.toml -p storage.pid | |
# start gateway | |
tmux split-window -h -c /Users/aunger/code/reva revad -c ./examples/separate/gateway.toml -p gateway.pid | |
# start frontend-oidc.toml | |
tmux split-window -v -c /Users/aunger/code/reva revad -c ./examples/separate/frontend-oidc.toml -p foidc.pid | |
# start frontend (basic auth) | |
tmux split-window -h -c /Users/aunger/code/reva revad -c ./examples/separate/frontend.toml -p frontend.pid | |
# start auth.toml | |
tmux split-window -v -c /Users/aunger/code/reva revad -c ./examples/separate/auth.toml -p auth.pid | |
tmux select-layout tiled | |
tmux -2 attach-session -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment