mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
Makefile, add deploy-tmux and deploy-screen
This commit is contained in:
parent
dbbfb50cd3
commit
e4f0277326
15
Makefile
15
Makefile
@ -28,7 +28,7 @@ haveno-apps:
|
|||||||
refresh-deps:
|
refresh-deps:
|
||||||
./gradlew --write-verification-metadata sha256 && ./gradlew build --refresh-keys --refresh-dependencies -x test -x checkstyleMain -x checkstyleTest
|
./gradlew --write-verification-metadata sha256 && ./gradlew build --refresh-keys --refresh-dependencies -x test -x checkstyleMain -x checkstyleTest
|
||||||
|
|
||||||
deploy:
|
deploy-screen:
|
||||||
# create a new screen session named 'localnet'
|
# create a new screen session named 'localnet'
|
||||||
screen -dmS localnet
|
screen -dmS localnet
|
||||||
# deploy each node in its own named screen window
|
# deploy each node in its own named screen window
|
||||||
@ -43,6 +43,19 @@ deploy:
|
|||||||
# give time to start
|
# give time to start
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
|
deploy-tmux:
|
||||||
|
# Start a new tmux session named 'localnet' (detached)
|
||||||
|
tmux new-session -d -s localnet -n main "make seednode-local"
|
||||||
|
# Split the window into panes and run each node in its own pane
|
||||||
|
tmux split-window -h -t localnet "make user1-desktop-local" # Split horizontally for user1
|
||||||
|
tmux split-window -v -t localnet:0.0 "make user2-desktop-local" # Split vertically on the left for user2
|
||||||
|
tmux split-window -v -t localnet:0.1 "make arbitrator-desktop-local" # Split vertically on the right for arbitrator
|
||||||
|
tmux select-layout -t localnet tiled
|
||||||
|
# give time to start
|
||||||
|
sleep 5
|
||||||
|
# Attach to the tmux session
|
||||||
|
tmux attach-session -t localnet
|
||||||
|
|
||||||
.PHONY: build seednode localnet
|
.PHONY: build seednode localnet
|
||||||
|
|
||||||
# Local network
|
# Local network
|
||||||
|
@ -95,9 +95,11 @@ If you are a developer who wants to test Haveno in a more controlled way, follow
|
|||||||
|
|
||||||
#### Deploy
|
#### Deploy
|
||||||
|
|
||||||
If you are a *screen* user, simply run `make deploy`. This command will open all needed Haveno instances (seednode, user1, user2, arbitrator) using *screen*.
|
If you are a *screen* user, simply run `make deploy-screen`. This command will open all needed Haveno instances (seednode, user1, user2, arbitrator) using *screen*.
|
||||||
|
|
||||||
If you don't use *screen*, open 4 terminal windows and run in each one of them:
|
If you are a *tmux* user, simply run `make deploy-tmux`. This command will open all needed Haveno instances (seednode, user1, user2, arbitrator) using *tmux* and attach them to splitted view.
|
||||||
|
|
||||||
|
If you don't use *screen* or *tmux*, open 4 terminal windows and run in each one of them:
|
||||||
|
|
||||||
1. `make seednode-local`
|
1. `make seednode-local`
|
||||||
2. `make user1-desktop-local` or if you want to run user1 as a daemon: `make user1-daemon-local`
|
2. `make user1-desktop-local` or if you want to run user1 as a daemon: `make user1-daemon-local`
|
||||||
|
Loading…
Reference in New Issue
Block a user